Part Number Hot Search : 
VCP3033A 20PT1 EZ10D5 ADM488AR 512MB AP40T03S 14002 SD243
Product Description
Full Text Search
 

To Download HC705RC17GRS Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  HC705RC17GRS/d rev. 2.0 non-disclosure agreement required 68hc705rc17 general release specification may 20, 1997 csic mcu design center austin, texas
non-disclosure agreement required general release speci?ation general release specification mc68hc705rc17 rev. 2.0 2 motorola motorola reserves the right to make changes without further notice to any products herein to improve reliability, function or design. motorola does not assume any liability arising out of the application or use of any product or circuit described herein; neither does it convey any license under its patent rights nor the rights of others. motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the motorola product could create a situation where personal injury or death may occur. should buyer purchase or use motorola products for any such unintended or unauthorized application, buyer shall indemnify and hold motorola and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that motorola was negligent regarding the design or manufacture of the part.
mc68hc705rc17 rev. 2.0 general release specification motorola list of sections 3 non-disclosure agreement required general release specification mc68hc705rc17 list of sections section 1. general description . . . . . . . . . . . . . . . . . . . 15 section 2. memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 section 3. central processor unit (cpu) . . . . . . . . . . . . 31 section 4. interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 section 5. resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 section 6. low-power modes . . . . . . . . . . . . . . . . . . . . 51 section 7. parallel input/output (i/o) . . . . . . . . . . . . . . 55 section 8. core timer . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 section 9. carrier modulator transmitter (cmt) . . . . . . 65 section 10. phase-locked loop (pll) synthesizer . . . . 83 section 11. eprom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89 section 12. instruction set . . . . . . . . . . . . . . . . . . . . . . . 97 section 13. electrical specifications . . . . . . . . . . . . . . 115 section 14. mechanical specifications . . . . . . . . . . . 121 section 15. ordering information . . . . . . . . . . . . . . . . 123
non-disclosure agreement required list of sections general release specification mc68hc705rc17 rev. 2.0 4 list of sections motorola
mc68hc705rc17 rev. 2.0 general release specification motorola table of contents 5 non-disclosure agreement required general release specification mc68hc705rc17 table of contents section 1. general description 1.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 1.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 1.3 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 1.4 options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 1.5 signal description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 1.5.1 v dd and v ss . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 1.5.2 irq/v pp (maskable interrupt request) . . . . . . . . . . . . . . . .20 1.5.3 osc1 and osc2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20 1.5.4 reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 1.5.5 lprst. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 1.5.6 iro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22 1.5.7 port a (pa0Cpa7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22 1.5.8 port b (pb0Cpb7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22 1.5.9 port c (pc0Cpc1 and pc4Cpc7). . . . . . . . . . . . . . . . . . . .22 1.5.10 xfc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23 1.5.11 v ddsyn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23 section 2. memory 2.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 2.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 2.3 memory map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 2.3.1 eprom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 2.3.2 eprom security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 2.3.3 ram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 2.3.4 bootloader rom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 2.4 input/output programming . . . . . . . . . . . . . . . . . . . . . . . . . . . .29
non-disclosure agreement required table of contents general release specification mc68hc705rc17 rev. 2.0 6 table of contents motorola section 3. central processor unit (cpu) 3.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 3.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 3.3 cpu registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 3.4 accumulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 3.5 index register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 3.6 condition code register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 3.7 stack pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34 3.8 program counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 section 4. interrupts 4.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37 4.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37 4.3 cpu interrupt processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 4.4 reset interrupt sequence. . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 4.5 software interrupt (swi) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 4.6 hardware interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41 4.7 external interrupt (irq/port b keyscan). . . . . . . . . . . . . . . . . .41 4.8 external interrupt timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 4.9 carrier modulator transmitter interrupt (cmt) . . . . . . . . . . . . .42 4.10 core timer interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43 section 5. resets 5.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 5.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 5.3 external reset ( reset). . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46 5.4 low-power external reset ( lprst) . . . . . . . . . . . . . . . . . . . .48 5.5 internal resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 5.5.1 power-on reset (por). . . . . . . . . . . . . . . . . . . . . . . . . . . .48 5.5.2 computer operating properly reset (copr) . . . . . . . . . . .49 5.5.2.1 resetting the cop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49
table of contents mc68hc705rc17 rev. 2.0 general release specification motorola table of contents 7 non-disclosure agreement required 5.5.2.2 cop during wait mode . . . . . . . . . . . . . . . . . . . . . . . . . .49 5.5.2.3 cop during stop mode . . . . . . . . . . . . . . . . . . . . . . . . . .49 5.5.2.4 cop watchdog timer considerations . . . . . . . . . . . . . . .50 5.5.3 illegal address. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 section 6. low-power modes 6.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 6.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 6.3 stop mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 6.4 wait mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52 6.5 low-power reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 section 7. parallel input/output (i/o) 7.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 7.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 7.3 port a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 7.4 port b . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 7.5 port c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 7.6 input/output (i/o) programming . . . . . . . . . . . . . . . . . . . . . . . .57 section 8. core timer 8.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59 8.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59 8.3 core timer control and status register. . . . . . . . . . . . . . . . . .61 8.4 core timer counter register . . . . . . . . . . . . . . . . . . . . . . . . . .63 8.5 computer operating properly (cop) reset . . . . . . . . . . . . . . .63 8.6 timer during wait mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 section 9. carrier modulator transmitter (cmt) 9.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 9.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 9.3 overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66
non-disclosure agreement required table of contents general release specification mc68hc705rc17 rev. 2.0 8 table of contents motorola 9.4 carrier generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68 9.4.1 time counter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69 9.4.2 carrier generator data registers . . . . . . . . . . . . . . . . . . . .70 9.5 modulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72 9.5.1 time mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73 9.5.2 fsk mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75 9.5.3 extended space operation . . . . . . . . . . . . . . . . . . . . . . . . .76 9.5.3.1 end-of-cycle (eoc) interrupt. . . . . . . . . . . . . . . . . . . . . .77 9.5.3.2 modulator control and status register . . . . . . . . . . . . . .78 9.5.4 modulator period data registers . . . . . . . . . . . . . . . . . . . .81 section 10. phase-locked loop (pll) synthesizer 10.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83 10.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83 10.3 phase-locked loop control register. . . . . . . . . . . . . . . . . . . .85 10.4 operation during stop mode . . . . . . . . . . . . . . . . . . . . . . . . . .87 10.5 noise immunity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 section 11. eprom 11.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89 11.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89 11.3 eprom. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89 11.4 bootloader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90 11.4.1 bootloader functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90 11.4.2 programming register . . . . . . . . . . . . . . . . . . . . . . . . . . . .91 11.4.3 mask option registers (mor1 and mor2) . . . . . . . . . . . .94 section 12. instruction set 12.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .97 12.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98 12.3 addressing modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98 12.3.1 inherent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 12.3.2 immediate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 12.3.3 direct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99
table of contents mc68hc705rc17 rev. 2.0 general release specification motorola table of contents 9 non-disclosure agreement required 12.3.4 extended . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 12.3.5 indexed, no offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100 12.3.6 indexed, 8-bit offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100 12.3.7 indexed,16-bit offset. . . . . . . . . . . . . . . . . . . . . . . . . . . . .100 12.3.8 relative . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101 12.4 instruction types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101 12.4.1 register/memory instructions . . . . . . . . . . . . . . . . . . . . . .102 12.4.2 read-modify-write instructions . . . . . . . . . . . . . . . . . . . . .103 12.4.3 jump/branch instructions . . . . . . . . . . . . . . . . . . . . . . . . .104 12.4.4 bit manipulation instructions . . . . . . . . . . . . . . . . . . . . . . .106 12.4.5 control instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107 12.5 instruction set summary . . . . . . . . . . . . . . . . . . . . . . . . . . . .108 12.6 opcode map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113 section 13. electrical specifications 13.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115 13.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115 13.3 maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116 13.4 operating range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117 13.5 thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117 13.6 dc electrical characteristics (5.0 vdc). . . . . . . . . . . . . . . . . .118 13.7 dc electrical characteristics (3.3 vdc). . . . . . . . . . . . . . . . . .119 13.8 control timing (3.3 vdc and 5.0 vdc). . . . . . . . . . . . . . . . . . .120 section 14. mechanical specifications 14.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121 14.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121 14.3 28-pin plastic dual in-line package (case 710-02) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121 14.4 28-pin small outline integrated circuit package (case 751f-04) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .122
non-disclosure agreement required table of contents general release specification mc68hc705rc17 rev. 2.0 10 table of contents motorola section 15. ordering information 15.1 contents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123 15.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123 15.3 ordering information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123
mc68hc705rc17 rev. 2.0 general release specification motorola list of figure 11 non-disclosure agreement required general release specification mc68hc705rc17 list of figure figure title page 1-1 mc68hc705rc17 block diagram . . . . . . . . . . . . . . . . . . . .17 1-2 28-pin soic pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 1-3 28-pin pdip pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 1-4 oscillator connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 2-1 mc68hc705rc17 memory map . . . . . . . . . . . . . . . . . . . . .26 2-2 i/o registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 3-1 programming model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 3-2 stacking order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 4-1 interrupt processing flowchart. . . . . . . . . . . . . . . . . . . . . . .40 4-2 irq function block diagram . . . . . . . . . . . . . . . . . . . . . . . .41 5-1 reset block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46 5-2 reset and por timing diagram . . . . . . . . . . . . . . . . . . . . .47 6-1 stop recovery timing diagram . . . . . . . . . . . . . . . . . . . . . .52 6-2 stop/wait flowchart . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53 7-1 port b pullup option. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 7-2 i/o circuitry . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 8-1 core timer block diagram . . . . . . . . . . . . . . . . . . . . . . . . . .60 8-2 core timer control and status register (ctcsr) . . . . . . .61 8-3 core timer counter register (ctcr) . . . . . . . . . . . . . . . . .63 9-1 carrier modulator transmitter module block diagram . . . . .67 9-2 carrier generator block diagram . . . . . . . . . . . . . . . . . . . . .68
non-disclosure agreement required list of figure general release specification mc68hc705rc17 rev. 2.0 12 list of figure motorola figure title page 9-3 carrier data register (chr1, clr1, chr2, and clr2) . . . . . . . . . . . . . . . . . .70 9-4 modulator block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . .73 9-5 cmt operation in time mode . . . . . . . . . . . . . . . . . . . . . . .74 9-6 extended space operation . . . . . . . . . . . . . . . . . . . . . . . . .76 9-7 modulator control and status register (mcsr) . . . . . . . . .78 9-8 modulator data registers (mdr1, mdr2, and mdr3) . . . . . . . . . . . . . . . . . . . . . .81 10-1 pll circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84 10-2 phase-locked loop control register (pllcr) . . . . . . . . . .85 11-1 programmer interface to host . . . . . . . . . . . . . . . . . . . . . . .90 11-2 programming register (prog) . . . . . . . . . . . . . . . . . . . . . .91 11-3 mc68hc705rc17 bootloader flowchart . . . . . . . . . . . . . .92 11-4 mc68hc705rc17 programming circuit . . . . . . . . . . . . . . .93 11-5 mask option register 1 (mor1) . . . . . . . . . . . . . . . . . . . . .94 11-6 mask option register 2 (mor2) . . . . . . . . . . . . . . . . . . . . .94
mc68hc705rc17 rev. 2.0 general release specification motorola list of tables 13 non-disclosure agreement required general release specification mc68hc705rc17 list of tables table title page 4-1 vector address for interrupts and reset . . . . . . . . . . . . . . . .38 5-1 cop watchdog timer recommendations . . . . . . . . . . . . . . .50 7-1 i/o pin functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .58 8-1 rti and cop rates at 4.096-mhz oscillator . . . . . . . . . . . . .62 10-1 ps1 and ps0 speed selects with 32.768-khz crystal. . . . . .86 11-1 bootloader functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90 12-1 register/memory instructions. . . . . . . . . . . . . . . . . . . . . . . .102 12-2 read-modify-write instructions . . . . . . . . . . . . . . . . . . . . . .103 12-3 jump and branch instructions . . . . . . . . . . . . . . . . . . . . . . .105 12-4 bit manipulation instructions. . . . . . . . . . . . . . . . . . . . . . . . .106 12-5 control instructions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107 12-6 instruction set summary . . . . . . . . . . . . . . . . . . . . . . . . . . .108 12-7 opcode map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .114 15-1 mc order numbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123
non-disclosure agreement required list of tables general release specification mc68hc705rc17 rev. 2.0 14 list of tables motorola
mc68hc705rc17 rev. 2.0 general release specification motorola general description 15 non-disclosure agreement required general release specification mc68hc705rc17 section 1. general description 1.1 contents 1.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 1.3 features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 1.4 options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 1.5 signal description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 1.5.1 v dd and v ss . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .19 1.5.2 irq/v pp (maskable interrupt request) . . . . . . . . . . . . . . . .20 1.5.3 osc1 and osc2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .20 1.5.4 reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 1.5.5 lprst. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 1.5.6 iro . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22 1.5.7 port a (pa0Cpa7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22 1.5.8 port b (pb0Cpb7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22 1.5.9 port c (pc0Cpc1 and pc4Cpc7). . . . . . . . . . . . . . . . . . . .22 1.5.10 xfc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23 1.5.11 v ddsyn . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23 1.2 introduction the mc68hc705rc17 is a general-purpose, low-cost addition to the m68hc05 family of microcontroller units (mcus) and is suitable for remote control applications. it contains the hc05 central processing unit (cpu) core, including the 14-stage core timer with real-time interrupt (rti), computer operating properly (cop) watchdog systems, and a programmable phase-lock loop (pll) synthesizer. on-chip peripherals include a carrier modulator transmitter. the 16-kbyte memory map has 15,936 bytes of user eprom, 340 bytes of boot rom, and 352 bytes of ram. there are 18 input-output (i/o) lines (eight having keyscan logic and pullups) and a low-power reset pin.
non-disclosure agreement required general description general release specification mc68hc705rc17 rev. 2.0 16 general description motorola the mc68hc705rc17 is available in 28-pin small outline integrated circuit (soic) or plastic dual in-line package (pdip) packages. four additional i/o lines are available for bond out in higher pin count packages. note: consult the factory for availability of higher pin count packages. 1.3 features features of the mc68hc705rc17 include: ? low cost ? hc05 core ? 28-pin soic or dip packages ? on-chip oscillator with 32.768-khz crystal/ceramic resonator ? phase-locked loop (pll) synthesizer with programmable speed ? 15,936 bytes of user rom ? 64 bytes of burn-in rom ? 352 bytes of on-chip ram ? 14-stage core timer with real-time interrupt (rti) and computer operating properly (cop) watchdog circuits ? carrier modulator transmitter supporting baseband, pulse length modulator (plm), and frequency shift keying (fsk) protocols ? low-power reset pin ? 18 bidirectional i/o lines (four additional i/o lines available for bond out in higher pin count packages) ? programmable pullups and interrupt on eight port pins (pb0Cpb7) ? high-current infrared (ir) drive pin ? high-current port pin (pc0)
general description features mc68hc705rc17 rev. 2.0 general release specification motorola general description 17 non-disclosure agreement required figure 1-1. mc68hc705rc17 block diagram ? 2 accumulator index register stack pointer program counter condition code register phase lock internal reset cop cpu m68hc05 cpu alu cpu registers control port a data direction register port b data direction register pb0 pb1 pb2 pb3 pb4 pb5 pb6 pb7 pa0 pa1 pa2 pa3 pa4 pa5 pa6 pa7 processor clock core timer ram 352 bytes eprom 15,936 bytes system system rti system irq 0 0 0 0 0 0 0 1 1 1 1 1 c z n i h keyscan pullups boot rom 340 bytes lprst iro port c data direction register pc0 pc1 pc4* pc5* pc6* pc7* * marked pins are available only in higher pin count (>28) packages. irqen irqen osc2 v dd v ss osc1 carrier modulator transmitter loop xfc v ddsyn
non-disclosure agreement required general description general release specification mc68hc705rc17 rev. 2.0 18 general description motorola ? power-saving stop and wait modes ? programmable options: C cop watchdog timer C stop instruction disable C edge-sensitive or edge- and level-sensitive interrupt trigger C port b pullups for keyscan ? illegal address reset ? rom security note: a line over a signal name indicates an active-low signal. for example, reset is active low. 1.4 options the options on the mc68hc705rc17 are handled with 11 eprom bits in two separate mask option register (mor1 and mor 2). these options are: ? eight port b pullups ? irq sensitivity ? cop enable/disable ? stop enable/disable the factory will program these options in the rom versions of this device. 1.5 signal description pinout for the 28-pin small outline integrated circuit (soic) package is shown in figure 1-2 . pinout for the 28-pin plastic dual in-line (pdip) package is shown in figure 1-3 . the signals are described in the following subsections. note: consult the factory for availability of higher pin count packages.
general description signal description mc68hc705rc17 rev. 2.0 general release specification motorola general description 19 non-disclosure agreement required 1.5.1 v dd and v ss power is supplied to the microcontrollers digital circuits using these two pins. v dd is the positive supply and v ss is ground. figure 1-2. 28-pin soic pinout figure 1-3. 28-pin pdip pinout pb4 pb5 pb6 pb7 pa0 pa1 pa2 pa3 pa4 pa5 osc1 osc2 v dd v ss pc1 v ddsyn xfc pb1 pb2 pc0 pb0 pb3 irq/v pp reset pa7 pa6 lprst iro 5 6 7 8 9 10 11 12 13 14 2 3 1 4 24 23 22 21 20 19 18 17 16 15 27 26 28 25 pb4 pb5 pb6 pb7 pa0 pa1 pa2 pa3 pa4 pa5 osc1 osc2 v dd v ss pc1 v ddsyn xfc pb1 pb2 pc0 pb0 pb3 irq/v pp reset pa7 pa6 lprst iro 5 6 7 8 9 10 11 12 13 14 2 3 1 4 24 23 22 21 20 19 18 17 16 15 27 26 28 25
non-disclosure agreement required general description general release specification mc68hc705rc17 rev. 2.0 20 general description motorola 1.5.2 irq/v pp (maskable interrupt request) this pin supplies the eprom with the required programming voltage. in addition, this pin serves as the input for external interrupts. triggering sensitivity is programmable using mor1. the options are: 1. negative edge-sensitive triggering only 2. both negative edge-sensitive and level-sensitive triggering the mcu completes the current instruction before it responds to the interrupt request. when irq goes low for at least one t ilih , a logic 1 is latched internally to signify that an interrupt has been requested. when the mcu completes its current instruction, the interrupt latch is tested. if the interrupt latch contains a logic 1 and the interrupt mask bit (i bit) in the condition code register is clear, the mcu then begins the interrupt sequence. if the option is selected to include level-sensitive triggering, the irq input requires an external resistor to v dd for wired-or operation. the irq pin contains an internal schmitt trigger as part of its input to improve noise immunity. refer to section 4. interrupts for more detail. 1.5.3 osc1 and osc2 these pins provide control input for an on-chip clock oscillator circuit. a crystal, a ceramic resonator, or an external signal connects to these pins to provide a system clock. the oscillator frequency is two times the internal bus rate. figure 1-4 shows the recommended circuit when using a crystal. the crystal and components should be mounted as close as possible to the input pins to minimize output distortion and startup stabilization time. a ceramic resonator may be used in place of the crystal in cost-sensitive applications. figure 1-4 (a) shows the recommended circuit for using a ceramic resonator. the manufacturer of the particular ceramic resonator being considered should be consulted for specific information.
general description signal description mc68hc705rc17 rev. 2.0 general release specification motorola general description 21 non-disclosure agreement required an external clock should be applied to the osc1 input with the osc2 pin not connected (see figure 1-4 (b) ). this setup can be used if the user does not want to run the cpu with a crystal. note: the pll design requires a 32.768-khz external frequency for proper operation. figure 1-4. oscillator connections 1.5.4 reset this active-low pin is used to reset the mcu to a known startup state by pulling reset low. the reset pin contains an internal schmitt trigger as part of its input to improve noise immunity. see section 5. resets . 1.5.5 lprst the lprst pin is an active-low pin and is used to put the mcu into low- power reset mode. in low-power reset mode the mcu is held in reset with all processor clocks halted. see section 5. resets . < osc1 osc2 osc1 osc2 mcu mcu external clock unconnected (a) crystal/ceramic resonator (b) external clock source 10 m w oscillator connections connections 30 pf 30 pf
non-disclosure agreement required general description general release specification mc68hc705rc17 rev. 2.0 22 general description motorola 1.5.6 iro the iro pin is the high-current source and sink output of the carrier modulator transmitter subsystem which is suitable for driving infrared (ir) led biasing logic. see section 9. carrier modulator transmitter (cmt) . 1.5.7 port a (pa0Cpa7) these eight i/o lines comprise port a. the state of any pin is software programmable and all port a lines are configured as inputs during power-on or reset. for detailed information on i/o programming, see section 7. parallel input/output (i/o) . 1.5.8 port b (pb0Cpb7) these eight i/o lines comprise port b. the state of any pin is software programmable and all port b lines are configured as inputs during power-on or reset. each port b i/o line has a mask optionable pullup for keyscan. for detailed information on i/o programming, see section 7. parallel input/output (i/o) . 1.5.9 port c (pc0Cpc1 and pc4Cpc7) these six i/o lines comprise port c. pc0 is a high-current pin. pc4 through pc7 are available only in higher pin count (>28) packages. the state of any pin is software programmable and all port c lines are configured as input during power-on or reset. for detailed information on i/o programming, see section 7. parallel input/output (i/o) . note: only two bits of port c are bonded out in 28-pin packages for the mc68hc705rc17, although port c is truly a 6-bit port. since pins pc4Cpc7 are unbonded, software should include the code to set their respective data direction register locations to outputs to avoid floating inputs.
general description signal description mc68hc705rc17 rev. 2.0 general release specification motorola general description 23 non-disclosure agreement required 1.5.10 xfc this pin provides a means for connecting an external filter capacitor to the synthesizer phase-locked loop filter. (for additional information concerning this capacitor, refer to section 10. phase-locked loop (pll) synthesizer .) 1.5.11 v ddsyn this pin provides a separate power connection to the pll synthesizer which should be at the same potential as v dd . note: any unused inputs, i/o ports, and no connects should be tied to an appropriate logic level (either v dd or v ss ). although the i/o ports of the mc68hc705rc17 do not require termination, termination is recommended to reduce the possibility of static damage.
non-disclosure agreement required general description general release specification mc68hc705rc17 rev. 2.0 24 general description motorola
mc68hc705rc17 rev. 2.0 general release specification motorola memory 25 non-disclosure agreement required general release specification mc68hc705rc17 section 2. memory 2.1 contents 2.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 2.3 memory map. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 2.3.1 eprom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 2.3.2 eprom security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 2.3.3 ram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 2.3.4 bootloader rom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 2.4 input/output programming . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 2.2 introduction this section describes the organization of the on-chip memory. 2.3 memory map the mc68hc705rc17 has a 16-kbyte memory map consisting of user eprom, ram, bootloader rom, and input/output (i/o). figure 2-1 is a memory map for the mc68hc705rc17. figure 2-2 is a more detailed memory map of the i/o register section.
non-disclosure agreement required memory general release specification mc68hc705rc17 rev. 2.0 26 memory motorola figure 2-1. mc68hc705rc17 memory map i/o 32 bytes ram 160 bytes stack 64 bytes ram 128 bytes user eprom 15,920 bytes boot rom user vectors 16 bytes $0000 $001f $0020 $00bf $00c0 $00ff $0180 $3faf $3fb0 $3ff1 $3fff 0000 0031 0032 0191 0192 0255 0383 0384 16303 16304 16368 16383 0256 port a data register port b data register port c data register port a data direction register port b data direction register port c data direction register core timer control & status reg. reserved $00 $01 $02 $03 $04 $05 $06 $07 $08 $09 $0f reserved reset vector (low byte) reset vector (high byte) swi vector (low byte) swi vector (high byte) irq/ptb keyscan pullups irq/ ptb keyscan pullups cmt vector (low byte) cmt vector (high byte) core timer vector (low byte) $3ff2 $3ff5 $3ff6 $3ff7 $3ff8 $3ff9 $3ffa $3ffb $3ffc $3ffd $3ffe unused $3fff reserved reserved programming register $18 $1f reserved $1e $10 $11 $12 $13 $14 $15 $16 $17 cmt chr1 cmt clr1 cmt chr2 cmt clr2 cmt mcsr cmt mdr1 cmt mdr2 cmt mdr3 core timer vector (high byte) unused $0a core timer counter register . . . . . . . ... .. vector (high byte) vector (low byte) reserved mor1 mor2 $3ff0 i/o 32 bytes boot rom 144 bytes user eprom 15,920 bytes boot rom user vectors 16 bytes mor1 mor2 boot mode memory map user mode memory map stack 64 bytes ram 16 bytes $00b0 boot rom $0100 16370 $0171 ram 15 bytes 112 bytes $0170 $3fef . . . . . . .
memory memory map mc68hc705rc17 rev. 2.0 general release specification motorola memory 27 non-disclosure agreement required addr register name bit 7 6 5 4 3 2 1 bit 0 $00 port a data register pa7 pa6 pa5 pa4 pa3 pa2 pa1 pa0 $01 port b data register pb7 pb6 pb5 pb4 pb3 pb2 pb1 pb0 $02 port c data register pc7 pc6 pc5 pc4 pc1 pc0 $03 reserved r r r r r r r r $04 port a data direction register ddra7 ddra6 ddra5 ddra4 ddra3 ddra2 ddra1 ddra0 $05 port b data direction register ddrb7 ddrb6 ddrb5 ddrb4 ddrb3 ddrb2 ddrb1 ddrb0 $06 port c data direction register ddrc7 ddrc6 ddrc5 ddrc4 ddrc1 ddrc0 $07 pll control register 0 bcs 0 bwc pllon vcotst ps1 ps0 $08 timer control and status register ctof rtif tofe rtie tofc rtfc rt1 rt0 $09 timer counter register d7 d6 d5 d4 d3 d2 d1 d0 $0a reserved r r r r r r r r $0b reserved r r r r r r r r $0c reserved r r r r r r r r $0d reserved r r r r r r r r $0e reserved r r r r r r r r $0f reserved r r r r r r r r $10 cmt timer chr1 iroln cmtpol ph5 ph4 ph3 ph2 ph1 ph0 $11 cmt timer clr1 irolp 0 pl5 pl4 pl3 pl2 pl1 pl0 $12 cmt timer chr2 0 0 sh5 sh4 sh3 sh2 sh1 sh0 $13 cmt timer clr2 0 0 sl5 sl4 sl3 sl2 sl1 sl0 $14 cmt timer mcsr eoc div2 eimsk exspc base mode ie mcgen $15 cmt timer mdr1 mb11 mb10 mb9 mb8 sb11 sb10 sb9 sb8 $16 cmt timer mdr2 mb7 mb6 mb5 mb4 mb3 mb2 mb1 mb0 $17 cmt timer mdr3 sb7 sb6 sb5 sb4 sb3 sb2 sb1 sb0 = unimplemented r = reserved figure 2-2. i/o registers (sheet 1 of 2)
non-disclosure agreement required memory general release specification mc68hc705rc17 rev. 2.0 28 memory motorola 2.3.1 eprom the user eprom consists of 15,936 bytes of eprom from $0180 to $3faf and 14 bytes of user vectors from $3ff2 to $3fff. the bootloader rom and vectors are located from $0020 to $00af and $0100 to $170 in boot mode only, and from $3fb0 to $3fef in both boot mode and burn-in mode. ten of the user vectors, $3ff6 thorough $3fff, are dedicated to reset and interrupt vectors. the four remaining locations, $3ff2 through $3ff5, are general-purpose user eprom locations. the mask option registers (mor1 and mor2) are located at $3ff0 and $3ff1. 2.3.2 eprom security the mc68hc705rc17 contains special circuitry to prevent accessing the eprom in non-user mode. emulation will not be affected by this change. security is controlled by a security bit in the mor register. it is intended to be programmed while the users are programming their code. this will inhibit reading of the eprom in all modes other than user mode. $18 reserved r r r r r r r r $19 reserved r r r r r r r r $1a reserved r r r r r r r r $1b reserved r r r r r r r r $1c reserved r r r r r r r r $1d reserved r r r r r r r r $1e reserved r r r r r r r r $1f reserved r r r r r r r r r = reserved addr register name bit 7 6 5 4 3 2 1 bit 0 figure 2-2. i/o registers (sheet 2 of 2)
memory input/output programming mc68hc705rc17 rev. 2.0 general release specification motorola memory 29 non-disclosure agreement required 2.3.3 ram the user ram consists of 352 bytes of a shared stack area. the ram starts at address $0020 and ends at address $017f. the stack begins at address $00ff. the stack pointer can access 64 bytes of ram in the range $00ff to $00c0. note: using the stack area for data storage or temporary work locations requires care to prevent it from being overwritten due to stacking from an interrupt or subroutine call. 2.3.4 bootloader rom addresses $0020 to $00af, $0100 to $0170, and $3fb0 to $3fef are reserved rom addresses that contain the instructions for the bootloader functions. (see section 11. eprom .) 2.4 input/output programming in user mode, 18 lines are arranged as three 8-bit i/o ports. these ports are programmable as either inputs or outputs under software control of the data direction registers. for detailed information, refer to section 7. parallel input/output (i/o) .
non-disclosure agreement required memory general release specification mc68hc705rc17 rev. 2.0 30 memory motorola
mc68hc705rc17 rev. 2.0 general release specification motorola central processor unit (cpu) 31 non-disclosure agreement required general release specification mc68hc705rc17 section 3. central processor unit (cpu) 3.1 contents 3.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 3.3 cpu registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 3.4 accumulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 3.5 index register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 3.6 condition code register. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 3.7 stack pointer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34 3.8 program counter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .35 3.2 introduction this section describes the registers of the mc68hc705rc17s central processor unit (cpu).
non-disclosure agreement required central processor unit (cpu) general release specification mc68hc705rc17 rev. 2.0 32 central processor unit (cpu) motorola 3.3 cpu registers the mcu contains five registers as shown in figure 3-1 . the interrupt stacking order is shown in figure 3-2 . figure 3-1. programming model figure 3-2. stacking order a 70 x 70 hinzc ccr 11 sp 70 pc 13 0 accumulator index register program counter stack pointer condition code register 0 0 0 0 0 13 0 index register pcl accumulator condition code register pch 111 70 stack i n t e r r u p t decreasing unstack r e t u r n increasing note: since the stack pointer decrements during pushes, the pcl is stacked first, followed by pch, etc. pulling from the stack is in the reverse order. memory addresses memory addresses
central processor unit (cpu) accumulator mc68hc705rc17 rev. 2.0 general release specification motorola central processor unit (cpu) 33 non-disclosure agreement required 3.4 accumulator the accumulator (a) is a general-purpose 8-bit register used to hold operands and results of arithmetic calculations or data manipulations. 3.5 index register the index register (x) is an 8-bit register used for the indexed addressing value to create an effective address. the index register may also be used as a temporary storage area. 3.6 condition code register the condition code register (ccr) is a 5-bit register in which the h, n, z, and c bits are used to indicate the results of the instruction just executed, and the i bit is used to enable or disable interrupts. these bits can be individually tested by a program, and specific actions can be taken as a result of their state. each bit is explained in the following paragraphs. half carry (h) this bit is set during add and adc operations to indicate that a carry occurred between bits 3 and 4. interrupt (i) when this bit is set, the timer and external interrupt are masked (disabled). if an interrupt occurs while this bit is set, the interrupt is latched and processed as soon as the i bit is cleared. 70 a 70 x ccr hinzc
non-disclosure agreement required central processor unit (cpu) general release specification mc68hc705rc17 rev. 2.0 34 central processor unit (cpu) motorola negative (n) when set, this bit indicates that the result of the last arithmetic, logical, or data manipulation was negative. zero (z) when set, this bit indicates that the result of the last arithmetic, logical, or data manipulation was zero. carry/borrow (c) when set, this bit indicates that a carry or borrow out of the arithmetic logical unit (alu) occurred during the last arithmetic operation. this bit is also affected during bit test and branch instructions and during shifts and rotates. 3.7 stack pointer the stack pointer (sp) contains the address of the next free location on the stack. during an mcu reset or the reset stack pointer (rsp) instruction, the stack pointer is set to location $00ff. the stack pointer is then decremented as data is pushed onto the stack and incremented as data is pulled from the stack. when accessing memory, the eight most significant bits are permanently set to 00000011. these eight bits are appended to the six least significant register bits to produce an address within the range of $00ff to $00c0. subroutines and interrupts may use up to 64 (decimal) locations. if 64 locations are exceeded, the stack pointer wraps around and loses the previously stored information. a subroutine call occupies two locations on the stack; an interrupt uses five locations. 13 7 0 00000011 sp
central processor unit (cpu) program counter mc68hc705rc17 rev. 2.0 general release specification motorola central processor unit (cpu) 35 non-disclosure agreement required 3.8 program counter the program counter (pc) is a 13-bit register that contains the address of the next byte to be fetched. note: the hc05 cpu core is capable of addressing 16-bit locations. for this implementation, however, the addressing registers are limited to a 16- kbyte memory map. 13 0 pc
non-disclosure agreement required central processor unit (cpu) general release specification mc68hc705rc17 rev. 2.0 36 central processor unit (cpu) motorola
mc68hc705rc17 rev. 2.0 general release specification motorola interrupts 37 non-disclosure agreement required general release specification mc68hc705rc17 section 4. interrupts 4.1 contents 4.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .37 4.3 cpu interrupt processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . .38 4.4 reset interrupt sequence. . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 4.5 software interrupt (swi) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .39 4.6 hardware interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41 4.7 external interrupt ( irq/port b keyscan). . . . . . . . . . . . . . . . . .41 4.8 external interrupt timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42 4.9 carrier modulator transmitter interrupt (cmt) . . . . . . . . . . . . .42 4.10 core timer interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43 4.2 introduction the mcu can be interrupted four different ways: 1. non-maskable software interrupt instruction (swi) 2. external asynchronous interrupt ( irq/port b keyscan) 3. internal carrier modulator transmitter interrupt 4. internal core timer interrupt
non-disclosure agreement required interrupts general release specification mc68hc705rc17 rev. 2.0 38 interrupts motorola 4.3 cpu interrupt processing interrupts cause the processor to save register contents on the stack and to set the interrupt mask (i bit) to prevent additional interrupts. unlike reset, hardware interrupts do not cause the current instruction execution to be halted, but are considered pending until the current instruction is complete. if interrupts are not masked (i bit in the ccr is clear) and the corresponding interrupt enable bit is set, the processor will proceed with interrupt processing. otherwise, the next instruction is fetched and executed. if an interrupt occurs, the processor completes the current instruction, stacks the current cpu register state, sets the i bit to inhibit further interrupts, and finally checks the pending hardware interrupts. if more than one interrupt is pending following the stacking operation, the interrupt with the highest vector location shown in table 4-1 will be serviced first. the swi is executed the same as any other instruction, regardless of the i-bit state. when an interrupt is to be processed, the cpu fetches the address of the appropriate interrupt software service routine from the vector table at locations $3ff6 through $3fff as defined in table 4-1 . table 4-1. vector address for interrupts and reset register flag name interrupt cpu interrupt vector address n/a n/a reset reset $3ffeC$3fff n/a n/a software interrupt swi $3ffcC$3ffd n/a n/a external interrupts* irq $3ffaC$3ffb mcsr eoc end-of-cycle interrupt cmt $3ff8C$3ff9 ctcsr ctof, rtif real-time interrupt core timer over?ow core timer $3ff6C$3ff7 *external interrupts include irq and port b keyscan sources.
interrupts reset interrupt sequence mc68hc705rc17 rev. 2.0 general release specification motorola interrupts 39 non-disclosure agreement required the m68hc05 cpu does not support interruptible instructions. the maximum latency to the first instruction of the interrupt service routine must include the longest instruction execution time plus stacking overhead. latency = (longest instruction execution time + 10) x t cyc seconds an return from interrupt (rti) instruction is used to signify when the interrupt software service routine is completed. the rti instruction causes the register contents to be recovered from the stack and normal processing to resume at the next instruction that was to be executed when the interrupt took place. figure 4-1 shows the sequence of events that occurs during interrupt processing. 4.4 reset interrupt sequence the reset function is not in the strictest sense an interrupt; however, it is acted upon in a similar manner as shown in figure 4-1 . a low-level input on the reset pin or an internally generated rst signal causes the program to vector to its starting address, which is specified by the contents of memory locations $3ffe and $3fff. the i bit in the condition code register is also set. the mcu is configured to a known state during this type of reset. 4.5 software interrupt (swi) the swi is an executable instruction and a nonmaskable interrupt since it is executed regardless of the state of the i bit in the ccr. if the i bit is zero (interrupts enabled), the swi instruction executes after interrupts that were pending before the swi was fetched or before interrupts generated after the swi was fetched. the interrupt service routine address is specified by the contents of memory locations $3ffc and $3ffd.
non-disclosure agreement required interrupts general release specification mc68hc705rc17 rev. 2.0 40 interrupts motorola figure 4-1 . interrupt processing flowchart external n restore registers from stack: ccr, a, x, pc. load pc from appropriate vector. set i bit in cc register. stack pc, x, a, ccr. clear irq request latch. fetch next instruction. execute instruction. n y y n i bit in ccr set? swi instruction ? n y rti instruction ? y from reset y internal cmt interrupt? n n y internal core timer interrupt? port b keyscan interrupts? eimsk clear? y n irq/
interrupts hardware interrupts mc68hc705rc17 rev. 2.0 general release specification motorola interrupts 41 non-disclosure agreement required 4.6 hardware interrupts all hardware interrupts except reset are maskable by the i bit in the ccr. if the i bit is set, all hardware interrupts (internal and external) are disabled. clearing the i bit enables the hardware interrupts. the three types of hardware interrupts are explained in the following sections. 4.7 external interrupt ( irq/port b keyscan) the irq pin provides an asynchronous interrupt to the cpu. a block diagram of the irq function is shown in figure 4-2 . note: the bih and bil instructions will apply to the level on the irq pin itself and to the output of the logic or function with the port b irq interrupts. the states of the individual port b pins can be checked by reading the appropriate port b pins as inputs. the irq pin is one source of an external interrupt. all port b pins (pb0 through pb7) act as other external interrupt sources if the pullup/interrupt feature is enabled as speci?ed by the user. figure 4-2. irq function block diagram irq latch r irq pin level (mor1 option) to irq processing in cpu port b interrupt/keyscan to bih & bil instruction sensing rst irq vector fetch v dd eimsk
non-disclosure agreement required interrupts general release specification mc68hc705rc17 rev. 2.0 42 interrupts motorola when edge sensitivity is selected for the irq interrupt, it is sensitive to these cases: 1. falling edge on the irq pin 2. falling edge on any port b pin with pullup/interrupt enabled when edge and level sensitivity is selected for the irq interrupt, it is sensitive to these cases: 1. low level on the irq pin 2. falling edge on the irq pin 3. falling edge or low level on any port b pin with pullup/interrupt enabled external interrupts also can be masked by setting the eimsk bit in the mscr register of the ir remote timer. see 9.5.4 modulator period data registers for details. 4.8 external interrupt timing if the interrupt mask bit (i bit) of the ccr is set, all maskable interrupts (internal and external) are disabled. clearing the i bit enables interrupts. the interrupt request is latched immediately following the falling edge of the irq source. it is then synchronized internally and serviced as specified by the contents of $3ffa and $3ffb. either a level-sensitive and edge-sensitive trigger or an edge-sensitive- only trigger is available via the mask programmable option for the irq pin. 4.9 carrier modulator transmitter interrupt (cmt) a cmt interrupt occurs when the end-of-cycle flag (eoc) and the end- of-cycle interrupt enable (eocie) bits are set in the modulator control and status register (mcsr). this interrupt will vector to the interrupt service routine located at the address specified by the contents of memory locations $3ff8 and $3ff9.
interrupts core timer interrupt mc68hc705rc17 rev. 2.0 general release specification motorola interrupts 43 non-disclosure agreement required 4.10 core timer interrupt this timer can create two types of interrupts. a timer overflow interrupt occurs whenever the 8-bit timer rolls over from $ff to $00 and the enable bit tofe is set. a real-time interrupt occurs whenever the programmed time elapses and the enable bit rtie is set. either of these interrupts vectors to the same interrupt service routine, located at the address specified by the contents of memory locations $3ff6 and $3ff7.
non-disclosure agreement required interrupts general release specification mc68hc705rc17 rev. 2.0 44 interrupts motorola
mc68hc705rc17 rev. 2.0 general release specification motorola resets 45 non-disclosure agreement required general release specification mc68hc705rc17 section 5. resets 5.1 contents 5.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45 5.3 external reset ( reset). . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46 5.4 low-power external reset ( lprst) . . . . . . . . . . . . . . . . . . . .48 5.5 internal resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48 5.5.1 power-on reset (por). . . . . . . . . . . . . . . . . . . . . . . . . . . .48 5.5.2 computer operating properly reset (copr) . . . . . . . . . . .49 5.5.2.1 resetting the cop . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .49 5.5.2.2 cop during wait mode . . . . . . . . . . . . . . . . . . . . . . . . . .49 5.5.2.3 cop during stop mode . . . . . . . . . . . . . . . . . . . . . . . . . .49 5.5.2.4 cop watchdog timer considerations . . . . . . . . . . . . . . .50 5.5.3 illegal address. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50 5.2 introduction the mcu can be reset from five sources: two external inputs and three internal restart conditions. the reset and lprst pins are inputs as shown in figure 5-1 . all the internal peripheral modules will be reset by the internal reset signal (rst). refer to figure 5-2 for reset timing detail.
non-disclosure agreement required resets general release specification mc68hc705rc17 rev. 2.0 46 resets motorola 5.3 external reset ( reset) the reset pin is one of the two external sources of a reset. this pin is connected to a schmitt trigger input gate to provide an upper and lower threshold voltage separated by a minimum amount of hysteresis. this external reset occurs whenever the reset pin is pulled below the lower threshold and remains in reset until the reset pin rises above the upper threshold. this active-low input will generate the rst signal and reset the cpu and peripherals. termination of the external reset input or the internal cop watchdog reset are the only reset sources that can alter the operating mode of the mcu. note: activation of the rst signal is generally referred to as reset of the device, unless otherwise specified. figure 5-1. reset block diagram cpu latch reset cop watchdog (copr) rst osc data address ph2 to other peripherals s irq mode select to irq logic latch r power-on reset (por) v dd illegal address (illaddr) address clocked d d lprst
mc68hc705rc17 rev. 2.0 general release specification motorola resets 47 resets external reset (reset) non-disclosure agreement required figure 5-2. reset and por timing diagram pch pcl osc1 2 reset internal processor internal address bus 1 3ffe 3fff v dd 4064 t cyc t cyc t rl internal data bus 1 3ffe 3ffe 3ffe 3ffe new pc 3fff notes: 1. internal timing signal and bus information are not available externally. 2. osc1 line is not meant to represent frequency. it is only used to represent time. 3. the next rising edge of the internal processor clock following the rising edge of reset initiates the reset sequence. 4. v dd must fall to a level lower than v por to be recognized as a power-on reset. 5. the lprst pin resets the cpu like the reset pin. however, 4064 por cycles are executed first, before the reset vector address appears on the internal address bus. (see 5.3 external reset (reset) .) 3 new new op code pcl pch new pc new pc op code new pc clock 1 0 v > v por 4
non-disclosure agreement required resets general release specification mc68hc705rc17 rev. 2.0 48 resets motorola 5.4 low-power external reset ( lprst) the lprst pin is one of the two external sources of a reset. this external reset occurs whenever the lprst pin is pulled below the lower threshold and remains in reset until the lprst pin rises. this active-low input will, in addition to generating the rst signal and resetting the cpu and peripherals, halt all internal processor clocks. the mcu will remain in this low-power reset condition as long as a logic 0 remains on lprst. when a logic 1 is applied to lprst, processor clocks will be re-enabled with the mcu remaining in reset until the 4064 internal processor clock cycle (t cyc ) oscillator stabilization delay is completed. if any other reset function is active at the end of this 4064-cycle delay, the rst signal remains in the reset condition until the other reset condition(s) end. 5.5 internal resets the three internally generated resets are the initial power-on reset function, the cop watchdog timer reset, and the illegal address detector. termination of the external reset input, external lprst input, or the internal cop watchdog timer are the only reset sources that can alter the operating mode of the mcu. the other internal resets do not have any effect on the mode of operation when their reset state ends. 5.5.1 power-on reset (por) the internal por is generated on power-up to allow the clock oscillator to stabilize. the por is strictly for power turn-on conditions and is not able to detect a drop in the power supply voltage (brown-out). there is an oscillator stabilization delay of 4064 internal processor bus clock cycles (ph2) after the oscillator becomes active. the por generates the rst signal that resets the cpu. if any other reset function is active at the end of this 4064-cycle delay, the rst signal remains in the reset condition until the other reset condition(s) ends.
resets internal resets mc68hc705rc17 rev. 2.0 general release specification motorola resets 49 non-disclosure agreement required 5.5.2 computer operating properly reset (copr) the mcu contains a watchdog timer that automatically times out if not reset (cleared) within a specific time by a program reset sequence. if the cop watchdog timer is allowed to time out, an internal reset is generated to reset the mcu. regardless of an internal or external reset, the mcu comes out of a cop reset according to the standard rules of mode selection. the cop reset function is enabled or disabled by a mask option and is verified during production testing. 5.5.2.1 resetting the cop writing a 0 to the cop bit prevents a cop reset. this action resets the counter and begins the time out period again. the cop bit is bit 0 of address $3ff0. a read of address $3ff0 returns user data programmed at that location. 5.5.2.2 cop during wait mode the cop continues to operate normally during wait mode. the software should pull the device out of wait mode periodically and reset the cop by writing to the copf bit to prevent a cop reset. 5.5.2.3 cop during stop mode when the stop enable mask option is selected, stop mode disables the oscillator circuit and thereby turns the clock off for the entire device. when stop is executed, the cop counter will hold its current state. if a reset is used to exit stop mode, the cop counter is reset and held until 4064 por cycles are completed at which time counting will begin. if an external irq is used to exit stop mode, the cop counter does not wait for the completion of the 4064 por cycles but does count these cycles. therefore, it is recommended that the cop is fed before executing the stop instruction.
non-disclosure agreement required resets general release specification mc68hc705rc17 rev. 2.0 50 resets motorola 5.5.2.4 cop watchdog timer considerations the cop watchdog timer is active in all modes of operation if enabled by a mask option. if the cop watchdog timer is selected by a mask option, any execution of the stop instruction (either intentionally or inadvertently due to the cpu being disturbed) causes the oscillator to halt and prevents the cop watchdog timer from timing out. if the cop watchdog timer is selected by a mask option, the cop resets the mcu when it times out. therefore, it is recommended that the cop watchdog be disabled for a system that must have intentional uses of the wait mode for periods longer than the cop time out period. the recommended interactions and considerations for the cop watchdog timer, stop instruction, and wait instruction are summarized in table 5-1 . 5.5.3 illegal address an illegal address reset is generated when the cpu attempts to fetch an instruction from i/o address space ($0000 to $001f). table 5-1. cop watchdog timer recommendations if the following conditions exist: then the cop watchdog timer should be: wait time wait time less than cop time out enable or disable cop by mask option wait time more than cop time out disable cop by mask option any length wait time disable cop by mask option
mc68hc705rc17 rev. 2.0 general release specification motorola low-power modes 51 non-disclosure agreement required general release specification mc68hc705rc17 section 6. low-power modes 6.1 contents 6.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 6.3 stop mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51 6.4 wait mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52 6.5 low-power reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54 6.2 introduction this section describes the low-power modes. 6.3 stop mode the stop instruction places the mcu in its lowest power-consumption mode. in stop mode, the internal oscillator is turned off, halting all internal processing, including timer operation. during the stop mode, the ctcsr ($08) bits are altered to remove any pending timer interrupt request and to disable any further timer interrupts. the timer prescaler is cleared. the i bit in the ccr is cleared to enable external interrupts. all other registers and memory remain unaltered. all input/output lines remain unchanged. the processor can be brought out of stop mode only by an external interrupt or reset. refer to figure 6-1 . note: if an external interrupt is pending when stop mode is entered, then stop mode will be exited immediately.
non-disclosure agreement required low-power modes general release specification mc68hc705rc17 rev. 2.0 52 low-power modes motorola figure 6-1. stop recovery timing diagram note: the eimsk bit of the carrier modulator transmitter mcsr (modulator control and status register) is not cleared automatically by the execution of a stop instruction. care should be taken to clear this bit before entering stop mode. 6.4 wait mode the wait instruction places the mcu in a low power-consumption mode, but wait mode consumes more power than stop mode. all cpu action is suspended, but the core timer, the oscillator, and any enabled module remain active. any interrupt or reset will cause the mcu to exit wait mode. the user must shut off subsystems to reduce power consumption. wait current specifications assume cpu operation only and do not include current consumption by any other subsystems. 3ffe 3ffe 3ffe 3ffe 3fff internal address bus internal clock irq 3 irq 2 reset osc1 1 t ilch 4064 t cyc reset or interrupt vector fetch t lih t rl notes: 1. represents the internal gating of the osc1 pin 2. irq pin edge-sensitive mask option 3. irq pin level and edge-sensitive mask option
low-power modes wait mode mc68hc705rc17 rev. 2.0 general release specification motorola low-power modes 53 non-disclosure agreement required during wait mode, the i bit in the ccr is cleared to enable interrupts. all other registers, memory, and input/output lines remain in their previous states. the timer may be enabled to allow a periodic exit from wait mode. note: for minimum current consumption, the phase-locked loop (pll) should be disabled or turned off before entering wait mode. figure 6-2. stop/wait flowchart turn on oscillator. wait for time delay to stabilize. 1. fetch reset vector or 2. service interrupt a. stack b. set i bit c. vector to interrupt routine restart processor clock. 1. fetch reset vector or 2. service interrupt a. stack b. set i bit c. vector to interrupt routine y y y y y n n n n n stop wait oscillator active. core timer clock active. processor clocks stopped. stop oscillator and all clocks. clear i bit. ir timer internal interrupt? core timer internal interrupt? n y y ir timer clock active. external interrupt ( irq)? (ptb keyscan pullups) external ( irq)? (ptb keyscan pullups) interrupt lprst or reset? lprst or reset?
non-disclosure agreement required low-power modes general release specification mc68hc705rc17 rev. 2.0 54 low-power modes motorola 6.5 low-power reset low-power reset mode is entered when a logic 0 is detected on the lprst pin. when in this mode (as long as lprst is held low), the mcu is held in reset and all internal clocks are halted. applying a logic 1 to lprst will cause the part to exit low-power reset mode and begin counting out the 4064-cycle oscillator stabilization period. once this time has elapsed, the mcu will begin operation from the reset vectors ($3ffeC$3fff).
mc68hc705rc17 rev. 2.0 general release specification motorola parallel input/output (i/o) 55 non-disclosure agreement required general release specification mc68hc705rc17 section 7. parallel input/output (i/o) 7.1 contents 7.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55 7.3 port a . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 7.4 port b . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .56 7.5 port c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57 7.6 input/output (i/o) programming . . . . . . . . . . . . . . . . . . . . . . . .57 7.2 introduction in user mode, 18 lines are arranged as one 2-bit and two 8-bit i/o ports. these ports are programmable as either inputs or outputs under software control of the data direction registers. note: to avoid a glitch on the output pins, write data to the i/o port data register before writing a 1 to the corresponding data direction register. four extra i/o ports are available on higher pin count packages. consult factory for availability.
non-disclosure agreement required parallel input/output (i/o) general release specification mc68hc705rc17 rev. 2.0 56 parallel input/output (i/o) motorola 7.3 port a port a is an 8-bit bidirectional port which does not share any of its pins with other subsystems. the port a data register is at $0000 and the data direction register (ddr) is at $0004. reset does not affect the data register, but clears the data direction register, thereby returning the ports to inputs. writing a 1 to a ddr bit sets the corresponding port bit to output mode. 7.4 port b port b is an 8-bit bidirectional port which does not share any of its pins with other subsystems. the address of the port b data register is $0001 and the data direction register (ddr) is at address $0005. reset does not affect the data register, but clears the data direction register, thereby returning the ports to inputs. writing a 1 to a ddr bit sets the corresponding port bit to output mode. each of the port b pins has a mask programmable pullup device that can be enabled. when the pullup device is enabled, this pin will also become an interrupt pin. the edge or edge and level sensitivity of the irq pin will also pertain to the enabled port b pins. care needs to be taken when using port b pins that have the pullup enabled. before switching from an output to an input, the data should be preconditioned to a logic 1 or the i bit should be set in the condition code register to prevent an interrupt from occurring. note: when a port b pin is configured as an output, its corresponding keyscan interrupt is disabled, regardless of its mask option. figure 7-1. port b pullup option pb7 v dd v dd ddr bit normal port circuitry as shown in figure 7-2 irq to interrupt logic mask option (pb7pu) disabled enabled from all other port b pins irqen
parallel input/output (i/o) port c mc68hc705rc17 rev. 2.0 general release specification motorola parallel input/output (i/o) 57 non-disclosure agreement required 7.5 port c port c is a 6-bit bidirectional port (pc0Cpc1 and pc4Cpc7) which does not share any of its pins with other subsystems. the port c data register is at $0002 and the data direction register (ddr) is at $0006. reset does not affect the data register, but clears the data direction register, thereby returning the ports to inputs. writing a 1 to a ddr bit sets the corresponding port bit to output mode. port c pins pc4 through pc7 are available only in higher pin count (>28 pin) packages. note: only two bits of port c are bonded out in 28-pin packages for the mc68hc05rc17, although port c is truly a 6-bit port. since pins pc4Cpc7 are unbonded, software should include the code to set their respective data direction register locations to outputs to avoid floating inputs. 7.6 input/output (i/o) programming port pins may be programmed as inputs or outputs under software control. the direction of the pins is determined by the state of the corresponding bit in the port data direction register (ddr). each i/o port has an associated ddr. any i/o port pin is configured as an output if its corresponding ddr bit is set to a logic 1. a pin is configured as an input if its corresponding ddr bit is cleared to a logic 0. at power-on or reset, all ddrs are cleared, which configures all pins as inputs. the data direction registers are capable of being written to or read by the processor. during the programmed output state, a read of the data register actually reads the value of the output data latch and not the i/o pin.
non-disclosure agreement required parallel input/output (i/o) general release specification mc68hc705rc17 rev. 2.0 58 parallel input/output (i/o) motorola figure 7-2. i/o circuitry table 7-1. i/o pin functions r/ w ddr i/o pin functions 00 the i/o pin is in input mode. data is written into the output data latch. 0 1 data is written into the output data latch and output to the i/o pin. 1 0 the state of the i/o pin is read. 1 1 the i/o pin is in an output mode. the output data latch is read. data direction register bit i/o pin input reg bit input i/o output internal hc05 connections latched output data bit
mc68hc705rc17 rev. 2.0 general release specification motorola core timer 59 non-disclosure agreement required general release specification mc68hc705rc17 section 8. core timer 8.1 contents 8.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59 8.3 core timer control and status register. . . . . . . . . . . . . . . . . .61 8.4 core timer counter register . . . . . . . . . . . . . . . . . . . . . . . . . .63 8.5 computer operating properly (cop) reset . . . . . . . . . . . . . . .63 8.6 timer during wait mode. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64 8.2 introduction the core timer for this device is a 14-stage multifunctional ripple counter. features include timer overflow, power-on reset (por), real-time interrupt (rti), and cop watchdog timer. as seen in figure 8-1 , the internal peripheral clock is divided by four, and then drives an 8-bit ripple counter. the value of this 8-bit ripple counter can be read by the cpu at any time by accessing the core timer counter register (ctcr) at address $09. a timer overflow function is implemented on the last stage of this counter, giving a possible interrupt rate of the internal peripheral clock(e)/1024. this point is then followed by three more stages, with the resulting clock (e/4096) driving the real- time interrupt circuit (rti). the rti circuit consists of three divider stages with a one-of-four selector. the output of the rti circuit is further divided by eight to drive the mask optional cop watchdog timer circuit. the rti rate selector bits and the rti and ctof enable bits and flags are located in the timer control and status register at location $08.
non-disclosure agreement required core timer general release specification mc68hc705rc17 rev. 2.0 60 core timer motorola figure 8-1. core timer block diagram cop clear internal bus $09 core timer counter register (ctcr) 5-bit counter ctof rtif tofe rtie rt1 interrupt circuit $08 rti select circuit status register rt0 timer control & overflow circuit detect cop watchdog timer ( ? 8) to reset logic 8 8 rtfc tofc e ? 2 10 tcbp ctcsr ctcr internal peripheral clock (e) to interrupt logic rti out e ? 2 12 por e ? 2 2 ? 4 e ? 2 15 e ? 2 14 e ? 2 13 e ? 2 12 2 3
core timer core timer control and status register mc68hc705rc17 rev. 2.0 general release specification motorola core timer 61 non-disclosure agreement required 8.3 core timer control and status register the ctcsr contains the timer interrupt flag, the timer interrupt enable bits, and the real-time interrupt rate select bits. figure 8-2 shows the value of each bit in the ctcsr when coming out of reset. ctof core timer overflow ctof is a read-only status bit set when the 8-bit ripple counter rolls over from $ff to $00. clearing the ctof is done by writing a 1 to tofc. writing to this bit has no effect. reset clears ctof. rtif real-time interrupt flag the real-time interrupt circuit consists of a 3-stage divider and a one- of-four selector. the clock frequency that drives the rti circuit is e/2 12 (or e ? 4096) with three additional divider stages, giving a maximum interrupt period of 16 milliseconds at a bus rate of 2.024 mhz. rtif is a clearable, read-only status bit and is set when the output of the chosen (one-of-four selection) stage goes active. clearing the rtif is done by writing a 1 to rtfc. writing has no effect on this bit. reset clears rtif. tofe timer overflow enable when this bit is set, a cpu interrupt request is generated when the ctof bit is set. reset clears this bit. rtie real-time interrupt enable when this bit is set, a cpu interrupt request is generated when the rtif bit is set. reset clears this bit. address: $0008 bit 7 654321 bit 0 read: ctof rtif tofe rtie 00 rt1 rt0 write: tofc rtfc reset: 00000011 = unimplemented figure 8-2. core timer control and status register (ctcsr)
non-disclosure agreement required core timer general release specification mc68hc705rc17 rev. 2.0 62 core timer motorola tofc timer overflow flag clear when a 1 is written to this bit, ctof is cleared. writing a 0 has no effect on the ctof bit. this bit always reads as 0. rtfc real-time interrupt flag clear when a 1 is written to this bit, rtif is cleared. writing a 0 has no effect on the rtif bit. this bit always reads as 0. rt1 and rt0 real-time interrupt rate select these two bits select one of four taps from the real-time interrupt circuit. refer to table 8-1 . reset sets these two bits which selects the lowest periodic rate and gives the maximum time in which to alter these bits if necessary. care should be taken when altering rt0 and rt1 if the time out period is imminent or uncertain. if the selected tap is modified during a cycle in which the counter is switching, an rtif could be missed or an additional one could be generated. to avoid problems, the cop should be cleared before changing rti taps. table 8-1. rti and cop rates at 4.096-mhz oscillator rti rate 2.048-mhz bus rt1 and rt0 minimum cop rates 2.048-mhz bus 2 ms 2 12 ? e00(2 15 C2 12 )/e 14 ms 4 ms 2 13 ? e01(2 16 C2 13 )/e 28 ms 8 ms 2 14 ? e10(2 17 C2 14 )/e 56 ms 16 ms 2 15 ? e11(2 18 C2 15 )/e 112 ms
core timer core timer counter register mc68hc705rc17 rev. 2.0 general release specification motorola core timer 63 non-disclosure agreement required 8.4 core timer counter register the timer counter register is a read-only register that contains the current value of the 8-bit ripple counter at the beginning of the timer chain. this counter is clocked by the cpu clock (e/4) and can be used for various functions, including a software input capture. extended time periods can be attained using the tof function to increment a temporary ram storage location, thereby simulating a 16-bit (or more) counter. the power-on cycle clears the entire counter chain and begins clocking the counter. after 4064 cycles, the power-on reset circuit is released, which again clears the counter chain and allows the device to come out of reset. at this point, if reset is not asserted, the timer starts counting up from zero and normal device operation begins. when reset is asserted any time during operation (other than por and low-power reset), the counter chain is cleared. 8.5 computer operating properly (cop) reset the cop watchdog timer function is implemented on this device by using the output of the rti circuit and further dividing it by eight. the minimum cop reset rates are listed in table 8-1 . if the cop circuit times out, an internal reset is generated and the normal reset vector is fetched. preventing a cop time out or clearing the cop is accomplished by writing a 0 to bit 0 of address $3ff0. when the cop is cleared, only the final divide-by-eight stage (output of the rti) is cleared. address: $0009 bit 7 654321 bit 0 read: d7 d6 d5 d4 d3 d2 d1 d0 write: reset: 00000000 = unimplemented figure 8-3. core timer counter register (ctcr)
non-disclosure agreement required core timer general release specification mc68hc705rc17 rev. 2.0 64 core timer motorola if the cop watchdog timer is allowed to time out, an internal reset is generated to reset the mcu. the cop remains enabled after execution of the wait instruction and all associated operations apply. if the stop instruction is disabled, execution of stop instruction causes the cpu to execute a no operation (nop) instruction. in addition, the cop is prohibited from being held in reset. this prevents a device lock-up condition. this cops objective is to make it impossible for this device to become stuck or locked-up and to be sure the cop is able to rescue the part from any situation where it might entrap itself in abnormal or unintended behavior. this function is a mask option. 8.6 timer during wait mode the cpu clock halts during wait mode, but the timer remains active. if interrupts are enabled, a timer interrupt will cause the processor to exit wait mode. the cop is always enabled while in user mode.
mc68hc705rc17 rev. 2.0 general release specification motorola carrier modulator transmitter (cmt) 65 non-disclosure agreement required general release specification mc68hc705rc17 section 9. carrier modulator transmitter (cmt) 9.1 contents 9.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65 9.3 overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .66 9.4 carrier generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .68 9.4.1 time counter. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69 9.4.2 carrier generator data registers . . . . . . . . . . . . . . . . . . . .70 9.5 modulator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .72 9.5.1 time mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .73 9.5.2 fsk mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75 9.5.3 extended space operation . . . . . . . . . . . . . . . . . . . . . . . . .76 9.5.3.1 end-of-cycle (eoc) interrupt. . . . . . . . . . . . . . . . . . . . . .77 9.5.3.2 modulator control and status register . . . . . . . . . . . . . .78 9.5.4 modulator period data registers . . . . . . . . . . . . . . . . . . . .81 9.2 introduction the carrier modulator transmitter (cmt) module provides a means to generate the protocol timing and carrier signals for a wide variety of encoding schemes. it incorporates hardware to off-load the critical and/or lengthy timing requirements associated with code generation from the cpu, releasing much of its bandwidth to handle other tasks such as code data generation, data decompression, or keyboard scanning. the cmt does not include dedicated hardware configurations for specific protocols but is intended to be sufficiently programmable in its function to handle the timing requirements of most protocols with
non-disclosure agreement required carrier modulator transmitter (cmt) general release specification mc68hc705rc17 rev. 2.0 66 carrier modulator transmitter (cmt) motorola minimal cpu intervention. when disabled, certain cmt registers can be used to change the state of the infrared out pin (iro) directly. this feature allows for the generation of future protocols not readily producible by the current architecture. 9.3 overview the module consists of carrier generator, modulator, and transmitter output blocks. the block diagram is shown in figure 9-1 . the carrier generator has a resolution of 500 ns with a 2-mhz oscillator. the user may independently define the high and low times of the carrier signal to determine both period and duty cycle. the carrier generator can generate signals with periods between 1 m s (1 mhz) and 64 m s (15.6 khz) in steps of 500 ns. the possible duty cycle options will depend upon the number of counts required to complete the carrier period. for example, a 400-khz signal has a period of 2.5 m s and will therefore require 5 x 500 ns counts to generate. these counts may be split between high and low times so the duty cycles available will be 20% (one high, four low), 40% (two high, three low), 60% (three high, two low) and 80% (four high, one low). for lower frequency signals with larger periods, higher resolution (as a percentage of the total period) duty cycles are possible. the carrier generator may select between two sets of high and low times. when operating in normal mode (subsequently referred to as time mode), just one set will be used. when operating in fsk (frequency shift key) mode, the generator will toggle between the two sets when instructed to do so by the modulator, allowing the user to dynamically switch between two carrier frequencies without cpu intervention. when the base bit in the modulator control and status register (mcsr) is set, the carrier output to the modulator is held high continuously to allow for the generation of baseband protocols. see 9.4 carrier generator . the modulator provides a simple method to control protocol timing. the modulator has a resolution of 4 m s with a 2-mhz oscillator. it can count system clocks to provide real-time control or it can count carrier clocks for self-clocked protocols. it can either gate the carrier onto the
carrier modulator transmitter (cmt) overview mc68hc705rc17 rev. 2.0 general release specification motorola carrier modulator transmitter (cmt) 67 non-disclosure agreement required figure 9-1. carrier modulator transmitter module block diagram modulator output (time), control the logic level of the modulator output (baseband) or directly route the carrier to the modulator output while providing a signal to switch the carrier generator between high/low time register buffers (fsk). see 9.5 modulator . the transmitter output block controls the state of the infrared out pin (iro). the modulator output is gated on to the iro pin when the modulator/carrier generator is enabled. otherwise, the iro pin is controlled by the state of the iro latch, which is directly accessible to the cpu by means of bit 7 of the carrier generator data registers chr1 and clr1. the iro latch can be written to on either edge of the internal bus clock (f osc /2), allowing for ir waveforms which have a resolution of twice the bus clock frequency (f osc ). see 9.4.2 carrier generator data registers . f osc carrier generator modulator carrier out modulator out modulator/ transmitter output base mode primary/secondary select cpu interface iro pin eoc flag f osc ? 2 db ab eoc interrupt eoc enable interrupt carrier enable
non-disclosure agreement required carrier modulator transmitter (cmt) general release specification mc68hc705rc17 rev. 2.0 68 carrier modulator transmitter (cmt) motorola 9.4 carrier generator the carrier signal is generated by counting a predetermined number of input clocks (500 ns for a 2-mhz oscillator) for both the carrier high time and the carrier low time. the period is determined by the total number of clocks counted. the duty cycle is determined by the ratio of high time clocks to total clocks counted. the high and low time values are user programmable and are held in two registers. an alternate set of high/low count values is held in another set of registers to allow the generation of dual frequency fsk (frequency shift keying) protocols without cpu intervention. the mcgen bit in the mcsr must be set and the base bit in the mcsr must be cleared to enable carrier generator clocks. the block diagram is shown in figure 9-2 . figure 9-2. carrier generator block diagram clk 6-bit up counter =? =? clr clock and output control primary high count register secondary high count register count register select control mode primary/ select carrier out secondary base f osc modulator/ carrier generator enable primary low count register secondary low count register
carrier modulator transmitter (cmt) carrier generator mc68hc705rc17 rev. 2.0 general release specification motorola carrier modulator transmitter (cmt) 69 non-disclosure agreement required 9.4.1 time counter the high/low time counter is a 6-bit up counter. after each increment, the contents of the counter are compared with the appropriate high or low count value register. when this value is reached, the counter is reset and the compare is redirected to the other count value register. assuming that the high time count compare register is currently active, a valid compare will cause the carrier output to be driven low. the counter will continue to increment and when reaching the value stored in the selected low count value register, it will be cleared and will cause the carrier output to be driven high. the cycle repeats, automatically generating a periodic signal which is directed to the modulator. the lowest frequency (maximum period) and highest frequency (minimum period) which can be generated are. f min = f osc ? (2 x (2 6 C 1)) hz f max = f osc ? (2 x 1) hz in the general case, the carrier generator output frequency is: f out = f osc ? (highcount + lowcount) hz where: 0 < highcount < 64 and 0 < lowcount < 64 note: these equations assume the div2 bit (bit 6) of the mcsr is clear. when the div2 bit is set, the carrier generator frequency will be half of what is shown in these equations. the duty cycle of the carrier signal is controlled by varying the ratio of high time to low + high time. as the input clock period is fixed, the duty cycle resolution will be proportional to the number of counts required to generate the desired carrier period. duty cycle highcount highcount lowcount + ---------------------------------------------------------------- =
non-disclosure agreement required carrier modulator transmitter (cmt) general release specification mc68hc705rc17 rev. 2.0 70 carrier modulator transmitter (cmt) motorola 9.4.2 carrier generator data registers the carrier generator contains two, 7-bit data registers: primary high time (chr1), primary low time (clr1); and two, 6-bit data registers: secondary high time (chr2) and secondary low time (clr2). bit 7 of chr1 and chr2 is used to read and write the iro latch. chr1 address: $0010 bit 7 654321 bit 0 read: iroln cmtpol ph5 ph4 ph3 ph2 ph1 ph0 write: reset: 0 0 uuuuuu u = unaffected clr1 address: $0011 bit 7 654321 bit 0 read: irolp 0 pl5 pl4 pl3 pl2 pl1 pl0 write: reset: 0 0 uuuuuu u = unaffected chr2 address: $0012 bit 7 654321 bit 0 read: 0 0 sh5 sh4 sh3 sh2 sh1 sh0 write: reset: 0 0 uuuuuu u = unaffected clr2 address: $0013 bit 7 654321 bit 0 read: 0 0 sl5 sl4 sl3 sl2 sl1 sl0 write: reset: 0 0 uuuuuu u = unaffected figure 9-3. carrier data register (chr1, clr1, chr2, and clr2)
carrier modulator transmitter (cmt) carrier generator mc68hc705rc17 rev. 2.0 general release specification motorola carrier modulator transmitter (cmt) 71 non-disclosure agreement required ph0Cph5 and pl0Cpl5 primary carrier high and low time data values when selected, these bits contain the number of input clocks required to generate the carrier high and low time periods. when operating in time mode (see 9.5.1 time mode ), this register pair is always selected. when operating in fsk mode (see 9.5.2 fsk mode ), this register pair and the secondary register pair are alternately selected under control of the modulator. the primary carrier high and low time values are undefined out of reset. these bits must be written to non- zero values before the carrier generator is enabled to avoid spurious results. note: writing to chr1 to update ph0Cph5 or to clr1 to update pl0Cpl5 will also update the iro latch. when mcgen (bit 0 in the mcsr) is clear, the iro latch value appears on the iro output pin. care should be taken that bit 7 of the data to be written to chr1 or chl1 should contain the desired state of the iro latch. sh0Csh5 and sl0Csl5 secondary carrier high and low time data values when selected, these bits contain the number of input clocks required to generate the carrier high and low time periods. when operating in time mode (see 9.5.1 time mode ), this register pair is never selected. when operating in fsk mode (see 9.5.2 fsk mode ), this register pair and the secondary register pair are alternately selected under control of the modulator. the secondary carrier high and low time values are undefined out of reset. these bits must be written to nonzero values before the carrier generator is enabled when operating in fsk mode. iroln and irolp iro latch control reading iroln or irolp reads the state of the iro latch. writing iroln updates the iro latch with the data being written on the negative edge of the internal processor clock (f osc /2). writing irolp updates the iro latch on the positive edge of the internal processor clock; for example, one f osc period later. the iro latch is clear out of reset.
non-disclosure agreement required carrier modulator transmitter (cmt) general release specification mc68hc705rc17 rev. 2.0 72 carrier modulator transmitter (cmt) motorola note: writing to chr1 to update iroln or to clr1 to update irolp will also update the primary carrier high and low data values. care should be taken that bits 5C0 of the data to be written to chr1 or chl1 should contain the desired values for the primary carrier high or low data. 9.5 modulator the modulator consists of a 12-bit down counter with underflow detection which is loaded from the modulation mark period from the mark buffer register, mbuff. when this counter underflows, the modulator gate is closed and a 12-bit comparator is enabled which continually compares the logical complement of the contents of the (still) decrementing counter with the contents of the modulation space period register, sreg. when a match is obtained, the modulator control gate is opened again. should sreg = 0, the match will be immediate and no space period will be generated (for instance, for fsk protocols which require successive bursts of different frequencies). when the match occurs, the counter is reloaded with the contents of mbuff, sreg is reloaded with the contents of its buffer, sbuff, and the cycle repeats. the mcgen bit in the mcsr must be set to enable the modulator timer. the 12-bit mbuff and sbuff registers are accessed through three 8- bit modulator period registers, mdr1, mdr2, and mdr3. the modulator can operate in two modes, time or fsk. in time mode the modulator counts clocks derived from the system oscillator and modulates a single-carrier frequency or no carrier (baseband). in fsk mode, the modulator counts carrier periods and instructs the carrier generator to alternate between two carrier frequencies whenever a modulation period (mark + space counts) expires.
carrier modulator transmitter (cmt) modulator mc68hc705rc17 rev. 2.0 general release specification motorola carrier modulator transmitter (cmt) 73 non-disclosure agreement required figure 9-4. modulator block diagram 9.5.1 time mode when the modulator operates in time mode, the modulation mark and space periods consist of zero or an integer number of f osc ? 8 clocks (= 250 khz @ 2 mhz osc). this provides a modulator resolution of 4 m s and a maximum mark and space periods of about 16 ms (each). however, to prevent carrier glitches which could affect carrier spectral purity, the modulator control gate and carrier clock are synchronized. the carrier signal is activated when the modulator gate opens. the modulator gate can only close when the carrier signal is low. (the output logic level during space periods is low). if the carrier generator is in baseband mode (base bit in mcsr is high), the modulator output will be at a logic 1 for the duration of the mark period and at a logic 0 for the duration of a space period. see figure 9-5 . =? 0 counter f osc eoc flag mbuff sbuff sreg * 13-bit down counter * * denotes hidden register 12 bits 12 bits ms bit 12 12 control/status register modulator eoc interrupt enable base mode ? 8 clock control carrier out load mbuff/sbuff system control eoc flag set modulator gate out primary/secondary select . . modulator modulator/ carrier generator enable extended space div2
non-disclosure agreement required carrier modulator transmitter (cmt) general release specification mc68hc705rc17 rev. 2.0 74 carrier modulator transmitter (cmt) motorola the mark and space time equations are: setting the div2 bit in the mcsr will double mark and space times. figure 9-5. cmt operation in time mode t mark mbuff 1 + () 8 f osc --------------------------------------------- -s sec = t space sbuff 8 f osc ------------------------------ s sec = modulator gate f osc ? 8 time mode output baseband output mark space mark mark space carrier frequency
carrier modulator transmitter (cmt) modulator mc68hc705rc17 rev. 2.0 general release specification motorola carrier modulator transmitter (cmt) 75 non-disclosure agreement required 9.5.2 fsk mode when the modulator operates in fsk mode, the modulation mark and space periods consist of an integer number of carrier clocks (space period can be zero). when the mark period expires, the space period is transparently started (as in time mode); however, in fsk mode the carrier switches between data registers in preparation for the next mark period. the carrier generator toggles between primary and secondary data register values whenever the modulator mark period expires. the space period provides an interpulse gap (no carrier), but if sbuff = 0, then the modulator and carrier generator will switch between carrier frequencies without a gap or any carrier glitches (zero space). using timing data for carrier burst and interpulse gap length calculated by the cpu, fsk mode automatically can generate a phase-coherent, dual-frequency fsk signal with programmable burst and interburst gaps. the mark and space time equations for fsk mode are: where f cg is the frequency output from the carrier generator, setting the div2 bit in the mcsr will double mark and space times. t mark mbuff 1 + f cg ------------------------------- s sec = t space sbuff f cg -------------------- -s sec =
non-disclosure agreement required carrier modulator transmitter (cmt) general release specification mc68hc705rc17 rev. 2.0 76 carrier modulator transmitter (cmt) motorola 9.5.3 extended space operation in either time or fsk mode, the space period can be made longer than the maximum possible value of sbuff. setting the exspc bit in the mcsr will force the modulator to treat the next modulation period (beginning with the next load of mbuff/sbuff) as a space period equal in length to the mark and space counts combined. subsequent modulation periods will consist entirely of these extended space periods with no mark periods. clearing exspc will return the modulator to standard operation at the beginning of the next modulation period. to calculate the length of an extended space in time mode, use the equation: where the subscripts 1, 2, ... n refer to the modulation periods that elapsed while the exspc bit was set. similarly, to calculate the length of an extended space in fsk mode, use the equation: where f cg is the frequency output from the carrier generator. for an example of extended space operation, see figure 9-6 . note: the exspc feature can be used to emulate a zero mark event. figure 9-6. extended space operation ((sbuff 1 )+(mbuff 2 +1+sbuff 2 ) +... (mbuff n +1+sbuff n )) x 8 f osc t exspace = secs ((sbuff 1 )+(mbuff 2 +1+sbuff 2 )+... (mbuff n +1+sbuff n )) f cg t exspace = secs set exspc clear exspc
carrier modulator transmitter (cmt) modulator mc68hc705rc17 rev. 2.0 general release specification motorola carrier modulator transmitter (cmt) 77 non-disclosure agreement required 9.5.3.1 end-of-cycle (eoc) interrupt at the end of each cycle (when the counter is reloaded from mbuff), the end-of-cycle (eoc) flag is set. if the interrupt enable bit was previously set, an interrupt will also be issued to the cpu. the eoc interrupt provides a means for the user to reload new mark/space values into the mbuff and sbuff registers. as the eoc interrupt is coincident with reloading the counter, mbuff does not require additional buffering and may be updated with a new value for the next period from within the eoc interrupt service routine (isr). to allow both mark and space period values to be updated from within the same isr, sreg is buffered by sbuff. the contents written to sbuff are transferred to the active register sreg at the end of every cycle irrespective of the state of the eoc flag. the eoc flag is cleared by a read of the modulator control and status register (mcsr) followed by an access of mdr2 or mdr3. the eoc flag must be cleared within the isr to prevent another interrupt being generated after exiting the isr. if the eoc interrupt is not being used (ie = 0), the eoc flag need not be cleared.
non-disclosure agreement required carrier modulator transmitter (cmt) general release specification mc68hc705rc17 rev. 2.0 78 carrier modulator transmitter (cmt) motorola 9.5.3.2 modulator control and status register the modulator control and status register (mcsr) contains the modulator and carrier generator enable (mcgen), interrupt enable (ie), mode select (mode), baseband enable (base), extended space (exspc), and external interrupt mask (eimsk) control bits, divide-by- two prescaler (div2) bit, and the end of cycle (eoc) status bit. eoc end-of-cycle status flag 1 = end of modulator cycle (counter = sbuff) has occurred 0 = current modulation cycle in progress eoc is set when a match occurs between the contents of the space period register, sreg, and the down counter. this is recognized as the end of the modulation cycle. at this time, the counter is initialized with the (possibly new) contents of the mark period buffer, mbuff, and the space period register, sreg, is loaded with the (possibly new) contents of the space period buffer, sbuff. this flag is cleared by a read of the mcsr followed by an access of mdr2 or mdr3. the eoc flag is cleared by reset. div2 divide-by-two prescaler 1 = divide-by-two prescaler enabled 0 = divide-by-two prescaler disabled the divide-by-two prescaler causes the cmt to be clocked at the bus rate when enabled; 2 x the bus rate when disabled (f osc ). this bit is not double buffered and so should not be set during a transmission. address: $0014 bit 7 654321 bit 0 read: eoc div2 eimsk exspc base mode ie mcgen write: reset: 00000000 = unimplemented figure 9-7. modulator control and status register (mcsr)
carrier modulator transmitter (cmt) modulator mc68hc705rc17 rev. 2.0 general release specification motorola carrier modulator transmitter (cmt) 79 non-disclosure agreement required eimsk external interrupt mask 1 = irq and keyscan interrupts masked 0 = irq and keyscan interrupts enabled the external interrupt mask bit is used to mask irq and keyscan interrupts. this bit is cleared by reset. exspc extended space enable 1 = extended space enabled 0 = extended space disabled for a description of the extended space enable bit, see 9.5.3 extended space operation . this bit is cleared by reset. base baseband enable 1 = baseband enabled 0 = baseband disabled when set, the base bit disables the carrier generator and forces the carrier output high for generation of baseband protocols. when base is clear, the carrier generator is enabled and the carrier output toggles at the frequency determined by values stored in the carrier data registers. see 9.5.1 time mode . this bit is cleared by reset. this bit is not double buffered and should not be written to during a transmission. mode mode select 1 = cmt operates in fsk mode. 0 = cmt operates in time mode. for a description of cmt operation in time mode, see 9.5.1 time mode . for a description of cmt operation in fsk mode, see 9.5.2 fsk mode . this bit is cleared by reset. this bit is not double buffered and should not be written to during a transmission. ie interrupt enable 1 = cpu interrupt enabled 0 = cpu interrupt disabled a cpu interrupt will be requested when eoc is set if ie was previously set. if ie is clear, eoc will not request a cpu interrupt.
non-disclosure agreement required carrier modulator transmitter (cmt) general release specification mc68hc705rc17 rev. 2.0 80 carrier modulator transmitter (cmt) motorola mcgen modulator and carrier generator enable 1 = modulator and carrier generator enabled 0 = modulator and carrier generator disabled setting mcgen will initialize the carrier generator and modulator and will enable all clocks. once enabled, the carrier generator and modulator will function continuously. when mcgen is cleared, the current modulator cycle will be allowed to expire before all carrier and modulator clocks are disabled (to save power) and the modulator output is forced low. the user should initialize all data and control registers before enabling the system to prevent spurious operation. this bit is cleared by reset.
carrier modulator transmitter (cmt) modulator mc68hc705rc17 rev. 2.0 general release specification motorola carrier modulator transmitter (cmt) 81 non-disclosure agreement required 9.5.4 modulator period data registers the 12-bit mbuff and sbuff registers are accessed through three 8- bit registers, mdr1, mdr2, and mdr3. mdr2 and mdr3 contain the least significant eight bits of mbuff and sbuff respectively. mdr1 contains the two most significant nibbles of mbuff and sbuff. in many applications, periods greater than those obtained by eight bits will not be required. splitting the registers up in this manner allows the user to clear mdr1 and generate 8-bit periods with just two data writes. mdr1 address: $0015 bit 7 654321 bit 0 read: mb11 mb10 mb9 mb8 sb11 sb10 sb9 sb8 write: reset: unaffected by reset mdr2 address: $0016 bit 7 654321 bit 0 read: mb7 mb6 mb5 mb4 mb3 mb2 mb1 mb0 write: reset: unaffected by reset mdr3 address: $0017 bit 7 654321 bit 0 read: sb7 sb6 sb5 sb4 sb3 sb2 sb1 sb0 write: reset: unaffected by reset figure 9-8. modulator data registers (mdr1, mdr2, and mdr3)
non-disclosure agreement required carrier modulator transmitter (cmt) general release specification mc68hc705rc17 rev. 2.0 82 carrier modulator transmitter (cmt) motorola
mc68hc705rc17 rev. 2.0 general release specification motorola phase-locked loop (pll) synthesizer 83 non-disclosure agreement required general release specification mc68hc705rc17 section 10. phase-locked loop (pll) synthesizer 10.1 contents 10.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .83 10.3 phase-locked loop control register. . . . . . . . . . . . . . . . . . . .85 10.4 operation during stop mode . . . . . . . . . . . . . . . . . . . . . . . . . .87 10.5 noise immunity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .87 10.2 introduction the phase-locked loop (pll) consists of a variable bandwidth loop filter, a voltage controlled oscillator (vco), a feedback frequency divider, and a digital phase detector. the pll requires an external loop filter capacitor (typically 0.1 m f) connected between xfc and v ddsyn . this capacitor should be located as close to the chip as possible to minimize noise. v ddsyn is the supply source for the pll and should be bypassed to minimize noise. the v ddsyn bypass cap should be as close as possible to the chip. v ddsyn should be at the same potential as v dd . the phase detector compares the frequency and phase of the feedback frequency (t fb ) and the crystal oscillator reference frequency (t ref ) and generates the output, pcomp, as shown in figure 10-1 . the output waveform is then integrated and amplified. the resultant dc voltage is applied to the voltage controlled oscillator. the output of the vco is divided by a variable frequency divider of 128, 64, 32, or 16 to provide the feedback frequency for the phase detector.
non-disclosure agreement required phase-locked loop (pll) synthesizer general release specification mc68hc705rc17 rev. 2.0 84 phase-locked loop (pll) synthesizer motorola figure 10-1. pll circuit to change pll frequencies, follow this 6-step procedure: 1. clear bcs to enable the low frequency bus rate 2. clear pllon to disable the pll and select manual high bandwidth 3. select the speed using ps1 and ps0 4. set pllon to enable the pll 5. wait a time of 90% t plls for the pll frequency to stabilize and select manual low bandwidth, wait another 10% t plls note: typically, t plls equals 10 ms. 6. set bcs to switch to the high-frequency bus rate the user cannot switch among the high speeds with the bcs bit set. following the procedure above will prevent possible bursts of high frequency operation during the re-configuration of the pll. whenever the pll is first enabled, the wide bandwidth mode is used. this enables the pll frequency to ramp up quickly. when the output frequency is near the desired frequency, the filter is switched to the narrow bandwidth mode to make the final frequency more stable. loop filter vco phase pcomp pllout frequency divider t fb osc1 xfc crystal oscillator ps1 ps0 to clock v ddsyn detect generation circuitry clock select bcs t ref 0.1 m f 0.1 m f
phase-locked loop (pll) synthesizer phase-locked loop control register mc68hc705rc17 rev. 2.0 general release specification motorola phase-locked loop (pll) synthesizer 85 non-disclosure agreement required 10.3 phase-locked loop control register this read/write register contains the control bits that select the pll frequency and enable/disable the synthesizer. bcs bus clock select when this bit is set, the output of the pll is used to generate the internal processor clock. when clear, the internal bus clock is driven by the crystal (osc1 ? 2). once bcs has been changed, it may take up to 1.5 osc1 cycles + 1.5 pllout cycles to make the transition. during the transition, the clock select output will be held low and all cpu and timer activity will cease until the transition is complete. before setting bcs, allow at least a time of t plls after pllon is set. this bit should not be set unless the pllon bit is already set on a previous instruction. reset clears this bit. bwc bandwidth control this bit selects high bandwidth control when set and low bandwidth control when clear. the low bandwidth driver is always enabled, so this bit determines whether the high bandwidth driver is on or off. when the pll is turned on, the bwc bit should be set to 1 for a time 90% t plls to allow the pll time to acquire a frequency close to the desired frequency. the bwc bit should then be cleared and software should delay for a time, 10% t plls , to allow the pll time to make the final adjustments. the pll clock cannot be used (bcs bit set). although it is not prohibited in hardware, the bcs bit should not be set unless the bwc bit is cleared and the proper delay times have been followed. the pll will generate a lower jitter clock when the bwc bit is cleared. reset clears this bit. address: $0007 bit 7 654321 bit 0 read: 0 bcs 0 bwc pllon vcotst ps1 ps0 write: reset: 00001101 figure 10-2. phase-locked loop control register (pllcr)
non-disclosure agreement required phase-locked loop (pll) synthesizer general release specification mc68hc705rc17 rev. 2.0 86 phase-locked loop (pll) synthesizer motorola pllon pll on this bit activates the synthesizer circuit without connecting it to the control circuit. this allows the synthesizer to stabilize before it can drive the cpu clocks. when this bit is cleared, the pll is shut off and the bcs bit cannot be set. (setting the bcs bit would engage the disabled pll onto the bus). reset sets this bit. note: for minimum current consumption, disable the pll module before entering wait mode. note: the pllon bit should not be cleared unless the bcs bit has been cleared on a previous write to the register. vcotst vco test note: this bit is intended for use by motorola. this bit cannot be cleared in user mode. ps1 and ps0 pll synthesizer speed select these two bits select one of four taps from the pll to drive the cpu clocks. these bits are used in conjunction with pllon and bcs bits in the pll control register. reset clears ps1 and sets ps0, choosing a bus clock frequency of 524 khz using an external crystal of 32.768 khz. caution: this bit should not be modified if bcs and pllon in the pllcr are both at a logic high. table 10-1. ps1 and ps0 speed selects with 32.768-khz crystal ps1 ps0 cpu bus clock frequency (f op ) 0 0 524 khz 0 1 1.049 mhz reset condition 1 0 2.097 mhz for 3.0 v v dd 5.5 v 1 1 4.194 mhz do not select
phase-locked loop (pll) synthesizer operation during stop mode mc68hc705rc17 rev. 2.0 general release specification motorola phase-locked loop (pll) synthesizer 87 non-disclosure agreement required note: for the mc68hc705rc17, the 4.194-mhz bus clock frequency should not be selected. the 2.097-mhz bus clock frequency should not be selected when running the part below v dd = 3.0 v. 10.4 operation during stop mode the pll is switched to low-frequency bus rate and is turned off temporarily when stop is executed. coming out of stop mode with an external irq, the pll is turned on with the same configuration it had before going into stop with the exception of bcs which is reset. otherwise, the pll control register is in the reset condition. 10.5 noise immunity the mcu should be insulated as much as possible from noise in the system. these steps are recommend to help prevent problems due to noise injection. 1. the application environment should be designed so that the mcu is not near signal traces which switch often, such as a clock signal. 2. the oscillator circuit for the mcu should be placed as close as possible to the osc1 and osc2 pins on the mcu. 3. to minimize noise, all power pins should be filtered by using bypass capacitors placed as close as possible to the mcu. see the application note designing for electromagnetic compatibility (emc) with hcmos microcontrollers , available through the motorola literature distribution center, document number an1050/d.
non-disclosure agreement required phase-locked loop (pll) synthesizer general release specification mc68hc705rc17 rev. 2.0 88 phase-locked loop (pll) synthesizer motorola
mc68hc705rc17 rev. 3.0 general release specification motorola eprom 89 non-disclosure agreement required general release specification mc68hc705rc17 section 11. eprom 11.1 contents 11.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89 11.3 eprom. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .89 11.4 bootloader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90 11.4.1 bootloader functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . .90 11.4.2 programming register . . . . . . . . . . . . . . . . . . . . . . . . . . . .91 11.4.3 mask option registers (mor1 and mor2) . . . . . . . . . . . .94 11.2 introduction this section describes erasable programmable read-only memory (eprom) programming. 11.3 eprom the user eprom consists of 15,920 bytes of eprom from $0180 to $3faf and 14 bytes of user vectors from $3ff2 to $3fff. the bootloader rom and vectors are located from $0020 to $00af, $0100 to $0170, and from $3fb0 to $3fef. ten of the user vectors, $3ff6C$3fff, are dedicated to reset and interrupt vectors. the four remaining locations, $3ff2C$3ff5, are general-purpose user eprom locations. the mask option registers (mor1 and mor2) are located at $3ff0 and $3ff1.
non-disclosure agreement required eprom general release specification mc68hc705rc17 rev. 3.0 90 eprom motorola 11.4 bootloader this program (contained in an on-chip boot rom) handles copying of user code from an external eprom into the on-chip eprom. the bootloader function does not have to be done from an external eprom, but can be done from a host. 11.4.1 bootloader functions two pins are used to select the bootloader function. these pins are pc1 and pb5. pc1 is normally a sync pin, which is used to synchronize the mcu to an off-chip source that is driving eprom data into the mcu. the programmer/host interface is shown in figure 11-1 . figure 11-1. programmer interface to host if an external eprom is used, this pin (pc1) must be connected to v ss . pb5 is used to select between program/verify or verify-only modes. two other pins, pb2 and iro, are used to drive the verf led and the prog led respectively. the programming modes are shown in table 11-1 . a program flow for the bootloader software included in the mc68hc705rc17 boot rom is shown in figure 11-3 . the bootloader programming board shown in figure 11-4 uses an external 12-bit counter to address the memory device containing the code to be copied. table 11-1. bootloader functions pc1 pb5 mode sync 1 program/verify sync 0 verify only clk (out) sync (in) data in data read
eprom bootloader mc68hc705rc17 rev. 3.0 general release specification motorola eprom 91 non-disclosure agreement required this counter requires a clock and a reset function. the 12-bit counter can address up to 4 kbytes of memory, which means that two port pins have to be used to address the extra memory space. note: the user code must be a one-to-one correspondence with the internal eprom addresses. 11.4.2 programming register this register is used to program the eprom array. only the latch and epgm bits are available in user mode. to program a byte of eprom, set latch, then write data to the desired address, then set epgm for t epgm. latch eprom latch control read: any time write: any time 1 = eprom address and data bus configured for programming. causes address and data bus to be latched when a write to eprom is done. eprom cannot be read if latch = 1. 0 = eprom address and data bus configured for normal reads epgm eprom program control read: any time write: any time security is not set 1 = v pp switched on to the eprom array. if latch = 1, epgm switches programming power to the eprom array. 0 = programming power switched off the eprom array address: $001e bit 7 654321 bit 0 read: rrrrrlatchr epgm write: reset: 00000000 r = reserved figure 11-2. programming register (prog)
non-disclosure agreement required eprom general release specification mc68hc705rc17 rev. 3.0 92 eprom motorola figure 11-3. mc68hc705rc17 bootloader flowchart boot pb0 = 1 jump to ram put ramsub in ram ddrc <- %00000001 portc <- %00000000 get byte from port a program byte jsr nxtadr change instruction from sta to eor inc count to $180 start addr <- $180 get byte from port a jsr ramsub jsr nxtadr end address ($3fff) wait verf led on compare end addr ($3fff) pb5 = 1 yes yes yes yes yes no no no no no prg/verf verify bump count to $180 ddrb <- %10011100 portb <- %00000100 pb1 = 0 no yes pb2 = 0 jump to eprom yes no burn-in
eprom bootloader mc68hc705rc17 rev. 3.0 general release specification motorola eprom 93 non-disclosure agreement required figure 11-4. mc68hc705rc17 programming circuit v dd a0 a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 a11 a12 q1 q2 q3 q4 q5 q6 q7 q8 q9 q10 q11 q12 clk rst mc14040b d0 d1 d2 d3 d4 d5 d6 d7 prog verf 2764 ce oe v dd v dd v dd v pp 15 pf 10 m w 4 mhz 15 pf 10 9 8 7 6 5 4 3 25 24 21 23 2 9 7 6 5 3 2 4 13 12 14 15 1 11 10 11 12 13 15 16 17 18 19 20 22 390 w 390 w v dd 16 8 14 28 27 1 v dd a13 v dd pa0 pa1 pa2 pa3 pa4 pa5 pa6 pa7 osc1 osc2 reset pc1 (sync) iro pb2 pb4 pb3 irq/v pp pb5 v ss v dd pb1 pb0 pb7 pc0 lprst note: all resistors are 10 k w unless specified otherwise.
non-disclosure agreement required eprom general release specification mc68hc705rc17 rev. 3.0 94 eprom motorola 11.4.3 mask option registers (mor1 and mor2) the mask option registers contain programmable eprom bits to control mask options. the mor register is latched at the end of reset and refreshed periodically depending on how often the eprom is read. pbxpu port b pullup (x is 7C0) when set, the pbpu bit enables the pullup on the corresponding port b pin. if the pbpu bit is cleared, the pullup devices are disabled. the erased state of the pbpu bit is to be cleared, thereby disabling the pullup devices. note: the mor registers are reset to zero during reset. this causes the port b pullup devices to become inactive until reset is completed. secur security enable 1 = this bit secures the eprom by disabling a read of the eprom in all modes other than user. this bit also disables writes to the mor registers and the programming register. 0 = the eprom can be read in all modes. address: $3ff0 bit 7 654321 bit 0 read: secur irq stop cop write: reset: 00000000 = unimplemented figure 11-5. mask option register 1 (mor1) address: $3ff1 bit 7 654321 bit 0 read: pb7pu pb6pu pb5pu pb4pu pb3pu pb2pu pb1pu pb0pu write: reset: 00000000 figure 11-6. mask option register 2 (mor2)
eprom bootloader mc68hc705rc17 rev. 3.0 general release specification motorola eprom 95 non-disclosure agreement required irq irq sensitivity 1 = this bit selects the edge- and level-sensitive irq. 0 = irq is edge-only sensitive. stop stop enable 1 = this bit enables the stop instruction. 0 = a stop instruction is equivalent to a wait instruction. cop cop enable 1 = this bit enables the cop watchdog timer. 0 = the cop is disabled. note: the port b keyscan interrupt sensitivity will match that of the irq sensitivity. (see 4.7 external interrupt (irq/port b keyscan) for more information.)
non-disclosure agreement required eprom general release specification mc68hc705rc17 rev. 3.0 96 eprom motorola
mc68hc705rc17 rev. 2.0 general release specification motorola instruction set 97 non-disclosure agreement required general release specification mc68hc705rc17 section 12. instruction set 12.1 contents 12.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98 12.3 addressing modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .98 12.3.1 inherent . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 12.3.2 immediate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 12.3.3 direct . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 12.3.4 extended . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .99 12.3.5 indexed, no offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100 12.3.6 indexed, 8-bit offset . . . . . . . . . . . . . . . . . . . . . . . . . . . . .100 12.3.7 indexed,16-bit offset. . . . . . . . . . . . . . . . . . . . . . . . . . . . .100 12.3.8 relative . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101 12.4 instruction types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .101 12.4.1 register/memory instructions . . . . . . . . . . . . . . . . . . . . . .102 12.4.2 read-modify-write instructions . . . . . . . . . . . . . . . . . . . . .103 12.4.3 jump/branch instructions . . . . . . . . . . . . . . . . . . . . . . . . .104 12.4.4 bit manipulation instructions . . . . . . . . . . . . . . . . . . . . . . .106 12.4.5 control instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .107 12.5 instruction set summary . . . . . . . . . . . . . . . . . . . . . . . . . . . .108 12.6 opcode map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .113
non-disclosure agreement required instruction set general release specification mc68hc705rc17 rev. 2.0 98 instruction set motorola 12.2 introduction the mcu instruction set has 62 instructions and uses eight addressing modes. the instructions include all those of the m146805 cmos family plus one more: the unsigned multiply (mul) instruction. the mul instruction allows unsigned multiplication of the contents of the accumulator (a) and the index register (x). the high-order product is stored in the index register, and the low-order product is stored in the accumulator. 12.3 addressing modes the cpu uses eight addressing modes for flexibility in accessing data. the addressing modes provide eight different ways for the cpu to find the data required to execute an instruction. the eight addressing modes are: ? inherent ? immediate ? direct ? extended ? indexed, no offset ? indexed, 8-bit offset ? indexed, 16-bit offset ? relative
instruction set addressing modes mc68hc705rc17 rev. 2.0 general release specification motorola instruction set 99 non-disclosure agreement required 12.3.1 inherent inherent instructions are those that have no operand, such as return from interrupt (rti) and stop (stop). some of the inherent instructions act on data in the cpu registers, such as set carry flag (sec) and increment accumulator (inca). inherent instructions require no operand address and are one byte long. 12.3.2 immediate immediate instructions are those that contain a value to be used in an operation with the value in the accumulator or index register. immediate instructions require no operand address and are two bytes long. the opcode is the first byte, and the immediate data value is the second byte. 12.3.3 direct direct instructions can access any of the first 256 memory locations with two bytes. the first byte is the opcode, and the second is the low byte of the operand address. in direct addressing, the cpu automatically uses $00 as the high byte of the operand address. 12.3.4 extended extended instructions use three bytes and can access any address in memory. the first byte is the opcode; the second and third bytes are the high and low bytes of the operand address. when using the motorola assembler, the programmer does not need to specify whether an instruction is direct or extended. the assembler automatically selects the shortest form of the instruction.
non-disclosure agreement required instruction set general release specification mc68hc705rc17 rev. 2.0 100 instruction set motorola 12.3.5 indexed, no offset indexed instructions with no offset are 1-byte instructions that can access data with variable addresses within the first 256 memory locations. the index register contains the low byte of the effective address of the operand. the cpu automatically uses $00 as the high byte, so these instructions can address locations $0000C$00ff. indexed, no offset instructions are often used to move a pointer through a table or to hold the address of a frequently used ram or i/o location. 12.3.6 indexed, 8-bit offset indexed, 8-bit offset instructions are 2-byte instructions that can access data with variable addresses within the first 511 memory locations. the cpu adds the unsigned byte in the index register to the unsigned byte following the opcode. the sum is the effective address of the operand. these instructions can access locations $0000C$01fe. indexed 8-bit offset instructions are useful for selecting the kth element in an n-element table. the table can begin anywhere within the first 256 memory locations and could extend as far as location 510 ($01fe). the k value is typically in the index register, and the address of the beginning of the table is in the byte following the opcode. 12.3.7 indexed,16-bit offset indexed, 16-bit offset instructions are 3-byte instructions that can access data with variable addresses at any location in memory. the cpu adds the unsigned byte in the index register to the two unsigned bytes following the opcode. the sum is the effective address of the operand. the first byte after the opcode is the high byte of the 16-bit offset; the second byte is the low byte of the offset. indexed, 16-bit offset instructions are useful for selecting the kth element in an n-element table anywhere in memory. as with direct and extended addressing, the motorola assembler determines the shortest form of indexed addressing.
instruction set instruction types mc68hc705rc17 rev. 2.0 general release specification motorola instruction set 101 non-disclosure agreement required 12.3.8 relative relative addressing is only for branch instructions. if the branch condition is true, the cpu finds the effective branch destination by adding the signed byte following the opcode to the contents of the program counter. if the branch condition is not true, the cpu goes to the next instruction. the offset is a signed, twos complement byte that gives a branching range of C128 to +127 bytes from the address of the next location after the branch instruction. when using the motorola assembler, the programmer does not need to calculate the offset, because the assembler determines the proper offset and verifies that it is within the span of the branch. 12.4 instruction types the mcu instructions fall into the following five categories: ? register/memory instructions ? read-modify-write instructions ? jump/branch instructions ? bit manipulation instructions ? control instructions
non-disclosure agreement required instruction set general release specification mc68hc705rc17 rev. 2.0 102 instruction set motorola 12.4.1 register/memory instructions these instructions operate on cpu registers and memory locations. most of them use two operands. one operand is in either the accumulator or the index register. the cpu finds the other operand in memory. table 12-1. register/memory instructions instruction mnemonic add memory byte and carry bit to accumulator adc add memory byte to accumulator add and memory byte with accumulator and bit test accumulator bit compare accumulator cmp compare index register with memory byte cpx exclusive or accumulator with memory byte eor load accumulator with memory byte lda load index register with memory byte ldx multiply mul or accumulator with memory byte ora subtract memory byte and carry bit from accumulator sbc store accumulator in memory sta store index register in memory stx subtract memory byte from accumulator sub
instruction set instruction types mc68hc705rc17 rev. 2.0 general release specification motorola instruction set 103 non-disclosure agreement required 12.4.2 read-modify-write instructions these instructions read a memory location or a register, modify its contents, and write the modified value back to the memory location or to the register. note: do not use read-modify-write operations on write-only registers. 1. unlike other read-modify-write instructions, bclr and bset use only direct addressing. 2. tst is an exception to the read-modify-write sequence because it does not write a replacement value. table 12-2. read-modify-write instructions instruction mnemonic arithmetic shift left (same as lsl) asl arithmetic shift right asr bit clear bclr (1) bit set bset (1) clear register clr complement (ones complement) com decrement dec increment inc logical shift left (same as asl) lsl logical shift right lsr negate (twos complement) neg rotate left through carry bit rol rotate right through carry bit ror test for negative or zero tst (2)
non-disclosure agreement required instruction set general release specification mc68hc705rc17 rev. 2.0 104 instruction set motorola 12.4.3 jump/branch instructions jump instructions allow the cpu to interrupt the normal sequence of the program counter. the unconditional jump instruction (jmp) and the jump-to-subroutine instruction (jsr) have no register operand. branch instructions allow the cpu to interrupt the normal sequence of the program counter when a test condition is met. if the test condition is not met, the branch is not performed. the brclr and brset instructions cause a branch based on the state of any readable bit in the first 256 memory locations. these 3-byte instructions use a combination of direct addressing and relative addressing. the direct address of the byte to be tested is in the byte following the opcode. the third byte is the signed offset byte. the cpu finds the effective branch destination by adding the third byte to the program counter if the specified bit tests true. the bit to be tested and its condition (set or clear) is part of the opcode. the span of branching is from C128 to +127 from the address of the next location after the branch instruction. the cpu also transfers the tested bit to the carry/borrow bit of the condition code register.
instruction set instruction types mc68hc705rc17 rev. 2.0 general release specification motorola instruction set 105 non-disclosure agreement required table 12-3. jump and branch instructions instruction mnemonic branch if carry bit clear bcc branch if carry bit set bcs branch if equal beq branch if half-carry bit clear bhcc branch if half-carry bit set bhcs branch if higher bhi branch if higher or same bhs branch if irq pin high bih branch if irq pin low bil branch if lower blo branch if lower or same bls branch if interrupt mask clear bmc branch if minus bmi branch if interrupt mask set bms branch if not equal bne branch if plus bpl branch always bra branch if bit clear brclr branch never brn branch if bit set brset branch to subroutine bsr unconditional jump jmp jump to subroutine jsr
non-disclosure agreement required instruction set general release specification mc68hc705rc17 rev. 2.0 106 instruction set motorola 12.4.4 bit manipulation instructions the cpu can set or clear any writable bit in the first 256 bytes of memory, which includes i/o registers and on-chip ram locations. the cpu can also test and branch based on the state of any bit in any of the first 256 memory locations. table 12-4. bit manipulation instructions instruction mnemonic bit clear bclr branch if bit clear brclr branch if bit set brset bit set bset
instruction set instruction types mc68hc705rc17 rev. 2.0 general release specification motorola instruction set 107 non-disclosure agreement required 12.4.5 control instructions these instructions act on cpu registers and control cpu operation during program execution. table 12-5. control instructions instruction mnemonic clear carry bit clc clear interrupt mask cli no operation nop reset stack pointer rsp return from interrupt rti return from subroutine rts set carry bit sec set interrupt mask sei stop oscillator and enable irq pin stop software interrupt swi transfer accumulator to index register tax transfer index register to accumulator txa stop cpu clock and enable interrupts wait
non-disclosure agreement required instruction set general release specification mc68hc705rc17 rev. 2.0 108 instruction set motorola 12.5 instruction set summary table 12-6. instruction set summary source form operation description effect on ccr address mode opcode operand cycles hinzc adc # opr adc opr adc opr adc opr ,x adc opr ,x adc ,x add with carry a ? (a) + (m) + (c) imm dir ext ix2 ix1 ix a9 b9 c9 d9 e9 f9 ii dd hh ll ee ff ff 2 3 4 5 4 3 add # opr add opr add opr add opr ,x add opr ,x add ,x add without carry a ? (a) + (m) imm dir ext ix2 ix1 ix ab bb cb db eb fb ii dd hh ll ee ff ff 2 3 4 5 4 3 and # opr and opr an d opr and opr ,x and opr ,x and ,x logical and a ? (a) (m) imm dir ext ix2 ix1 ix a4 b4 c4 d4 e4 f4 ii dd hh ll ee ff ff 2 3 4 5 4 3 asl opr asla aslx asl opr ,x asl ,x arithmetic shift left (same as lsl) dir inh inh ix1 ix 38 48 58 68 78 dd ff 5 3 3 6 5 asr opr asra asrx asr opr ,x asr ,x arithmetic shift right dir inh inh ix1 ix 37 47 57 67 77 dd ff 5 3 3 6 5 bcc rel branch if carry bit clear pc ? (pc) + 2 + rel ? c = 0 rel 24 rr 3 bclr n opr clear bit n mn ? 0 dir (b0) dir (b1) dir (b2) dir (b3) dir (b4) dir (b5) dir (b6) dir (b7) 11 13 15 17 19 1b 1d 1f dd dd dd dd dd dd dd dd 5 5 5 5 5 5 5 5 bcs rel branch if carry bit set (same as blo) pc ? (pc) + 2 + rel ? c = 1 rel 25 rr 3 beq rel branch if equal pc ? (pc) + 2 + rel ? z = 1 rel 27 rr 3 bhcc rel branch if half-carry bit clear pc ? (pc) + 2 + rel ? h = 0 rel 28 rr 3 bhcs rel branch if half-carry bit set pc ? (pc) + 2 + rel ? h = 1 rel 29 rr 3 bhi rel branch if higher pc ? (pc) + 2 + rel ? c z = 0 rel 22 rr 3 bhs rel branch if higher or same pc ? (pc) + 2 + rel ? c = 0 rel 24 rr 3 c b0 b7 0 b0 b7 c
instruction set instruction set summary mc68hc705rc17 rev. 2.0 general release specification motorola instruction set 109 non-disclosure agreement required bih rel branch if irq pin high pc ? (pc) + 2 + rel ? irq = 1 rel 2f rr 3 bil rel branch if irq pin low pc ? (pc) + 2 + rel ? irq = 0 rel 2e rr 3 bit # opr bit opr bit opr bit opr ,x bit opr ,x bit ,x bit test accumulator with memory byte (a) (m) imm dir ext ix2 ix1 ix a5 b5 c5 d5 e5 f5 ii dd hh ll ee ff ff 2 3 4 5 4 3 blo rel branch if lower (same as bcs) pc ? (pc) + 2 + rel ? c = 1 rel 25 rr 3 bls rel branch if lower or same pc ? (pc) + 2 + rel ? c z = 1 rel 23 rr 3 bmc rel branch if interrupt mask clear pc ? (pc) + 2 + rel ? i = 0 rel 2c rr 3 bmi rel branch if minus pc ? (pc) + 2 + rel ? n = 1 rel 2b rr 3 bms rel branch if interrupt mask set pc ? (pc) + 2 + rel ? i = 1 rel 2d rr 3 bne rel branch if not equal pc ? (pc) + 2 + rel ? z = 0 rel 26 rr 3 bpl rel branch if plus pc ? (pc) + 2 + rel ? n = 0 rel 2a rr 3 bra rel branch always pc ? (pc) + 2 + rel ? 1 = 1 rel 20 rr 3 brclr n opr rel branch if bit n clear pc ? (pc) + 2 + rel ? mn = 0 dir (b0) dir (b1) dir (b2) dir (b3) dir (b4) dir (b5) dir (b6) dir (b7) 01 03 05 07 09 0b 0d 0f dd rr dd rr dd rr dd rr dd rr dd rr dd rr dd rr 5 5 5 5 5 5 5 5 brn rel branch never pc ? (pc) + 2 + rel ? 1 = 0 rel 21 rr 3 brset n opr rel branch if bit n set pc ? (pc) + 2 + rel ? mn = 1 dir (b0) dir (b1) dir (b2) dir (b3) dir (b4) dir (b5) dir (b6) dir (b7) 00 02 04 06 08 0a 0c 0e dd rr dd rr dd rr dd rr dd rr dd rr dd rr dd rr 5 5 5 5 5 5 5 5 bset n opr set bit n mn ? 1 dir (b0) dir (b1) dir (b2) dir (b3) dir (b4) dir (b5) dir (b6) dir (b7) 10 12 14 16 18 1a 1c 1e dd dd dd dd dd dd dd dd 5 5 5 5 5 5 5 5 bsr rel branch to subroutine pc ? (pc) + 2; push (pcl) sp ? (sp) C 1; push (pch) sp ? (sp) C 1 pc ? (pc) + rel rel ad rr 6 clc clear carry bit c ? 0 0 inh 98 2 cli clear interrupt mask i ? 0 0 inh 9a 2 table 12-6. instruction set summary (continued) source form operation description effect on ccr address mode opcode operand cycles hinzc
non-disclosure agreement required instruction set general release specification mc68hc705rc17 rev. 2.0 110 instruction set motorola clr opr clra clrx clr opr ,x clr ,x clear byte m ? $00 a ? $00 x ? $00 m ? $00 m ? $00 0 1 dir inh inh ix1 ix 3f 4f 5f 6f 7f dd ff 5 3 3 6 5 cmp # opr cmp opr cmp opr cmp opr ,x cmp opr ,x cmp ,x compare accumulator with memory byte (a) C (m) imm dir ext ix2 ix1 ix a1 b1 c1 d1 e1 f1 ii dd hh ll ee ff ff 2 3 4 5 4 3 com opr coma comx com opr ,x com ,x complement byte (ones complement) m ? ( m) = $ff C (m) a ? ( a) = $ff C (a) x ? ( x) = $ff C (x) m ? ( m) = $ff C (m) m ? ( m) = $ff C (m) 1 dir inh inh ix1 ix 33 43 53 63 73 dd ff 5 3 3 6 5 cpx # opr cpx opr cpx opr cpx opr ,x cpx opr ,x cpx ,x compare index register with memory byte (x) C (m) imm dir ext ix2 ix1 ix a3 b3 c3 d3 e3 f3 ii dd hh ll ee ff ff 2 3 4 5 4 3 dec opr deca decx dec opr ,x dec ,x decrement byte m ? (m) C 1 a ? (a) C 1 x ? (x) C 1 m ? (m) C 1 m ? (m) C 1 dir inh inh ix1 ix 3a 4a 5a 6a 7a dd ff 5 3 3 6 5 eor # opr eor opr eor opr eor opr ,x eor opr ,x eor ,x exclusive or accumulator with memory byte a ? (a) ? (m) imm dir ext ix2 ix1 ix a8 b8 c8 d8 e8 f8 ii dd hh ll ee ff ff 2 3 4 5 4 3 inc opr inca incx inc opr ,x inc ,x increment byte m ? (m) + 1 a ? (a) + 1 x ? (x) + 1 m ? (m) + 1 m ? (m) + 1 dir inh inh ix1 ix 3c 4c 5c 6c 7c dd ff 5 3 3 6 5 jmp opr jmp opr jmp opr ,x jmp opr ,x jmp ,x unconditional jump pc ? jump address dir ext ix2 ix1 ix bc cc dc ec fc dd hh ll ee ff ff 2 3 4 3 2 table 12-6. instruction set summary (continued) source form operation description effect on ccr address mode opcode operand cycles hinzc
instruction set instruction set summary mc68hc705rc17 rev. 2.0 general release specification motorola instruction set 111 non-disclosure agreement required jsr opr jsr opr jsr opr ,x jsr opr ,x jsr ,x jump to subroutine pc ? (pc) + n (n = 1, 2, or 3) push (pcl); sp ? (sp) C 1 push (pch); sp ? (sp) C 1 pc ? effective address dir ext ix2 ix1 ix bd cd dd ed fd dd hh ll ee ff ff 5 6 7 6 5 lda # opr lda opr lda opr lda opr ,x lda opr ,x lda ,x load accumulator with memory byte a ? (m) imm dir ext ix2 ix1 ix a6 b6 c6 d6 e6 f6 ii dd hh ll ee ff ff 2 3 4 5 4 3 ldx # opr ldx opr ldx opr ldx opr ,x ldx opr ,x ldx ,x load index register with memory byte x ? (m) imm dir ext ix2 ix1 ix ae be ce de ee fe ii dd hh ll ee ff ff 2 3 4 5 4 3 lsl opr lsla lslx lsl opr ,x lsl ,x logical shift left (same as asl) dir inh inh ix1 ix 38 48 58 68 78 dd ff 5 3 3 6 5 lsr opr lsra lsrx lsr opr ,x lsr ,x logical shift right 0 dir inh inh ix1 ix 34 44 54 64 74 dd ff 5 3 3 6 5 mul unsigned multiply x : a ? (x) (a) 0 0 inh 42 11 neg opr nega negx neg opr ,x neg ,x negate byte (twos complement) m ? C(m) = $00 C (m) a ? C(a) = $00 C (a) x ? C(x) = $00 C (x) m ? C(m) = $00 C (m) m ? C(m) = $00 C (m) dir inh inh ix1 ix 30 40 50 60 70 dd ff 5 3 3 6 5 nop no operation inh 9d 2 ora # opr ora opr ora opr ora opr ,x ora opr ,x ora ,x logical or accumulator with memory a ? (a) (m) imm dir ext ix2 ix1 ix aa ba ca da ea fa ii dd hh ll ee ff ff 2 3 4 5 4 3 rol opr rola rolx rol opr ,x rol ,x rotate byte left through carry bit dir inh inh ix1 ix 39 49 59 69 79 dd ff 5 3 3 6 5 table 12-6. instruction set summary (continued) source form operation description effect on ccr address mode opcode operand cycles hinzc c b0 b7 0 b0 b7 c 0 c b0 b7
non-disclosure agreement required instruction set general release specification mc68hc705rc17 rev. 2.0 112 instruction set motorola ror opr rora rorx ror opr ,x ror ,x rotate byte right through carry bit dir inh inh ix1 ix 36 46 56 66 76 dd ff 5 3 3 6 5 rsp reset stack pointer sp ? $00ff inh 9c 2 rti return from interrupt sp ? (sp) + 1; pull (ccr) sp ? (sp) + 1; pull (a) sp ? (sp) + 1; pull (x) sp ? (sp) + 1; pull (pch) sp ? (sp) + 1; pull (pcl) inh 80 9 rts return from subroutine sp ? (sp) + 1; pull (pch) sp ? (sp) + 1; pull (pcl) inh 81 6 sbc # opr sbc opr sbc opr sbc opr ,x sbc opr ,x sbc ,x subtract memory byte and carry bit from accumulator a ? (a) C (m) C (c) imm dir ext ix2 ix1 ix a2 b2 c2 d2 e2 f2 ii dd hh ll ee ff ff 2 3 4 5 4 3 sec set carry bit c ? 1 1 inh 99 2 sei set interrupt mask i ? 1 1 inh 9b 2 sta opr sta opr sta opr ,x sta opr ,x sta ,x store accumulator in memory m ? (a) dir ext ix2 ix1 ix b7 c7 d7 e7 f7 dd hh ll ee ff ff 4 5 6 5 4 stop stop oscillator and enable irq pin 0 inh 8e 2 stx opr stx opr stx opr ,x stx opr ,x stx ,x store index register in memory m ? (x) dir ext ix2 ix1 ix bf cf df ef ff dd hh ll ee ff ff 4 5 6 5 4 sub # opr sub opr sub opr sub opr ,x sub opr ,x sub ,x subtract memory byte from accumulator a ? (a) C (m) imm dir ext ix2 ix1 ix a0 b0 c0 d0 e0 f0 ii dd hh ll ee ff ff 2 3 4 5 4 3 swi software interrupt pc ? (pc) + 1; push (pcl) sp ? (sp) C 1; push (pch) sp ? (sp) C 1; push (x) sp ? (sp) C 1; push (a) sp ? (sp) C 1; push (ccr) sp ? (sp) C 1; i ? 1 pch ? interrupt vector high byte pcl ? interrupt vector low byte 1 inh 83 10 tax transfer accumulator to index register x ? (a) inh 97 2 table 12-6. instruction set summary (continued) source form operation description effect on ccr address mode opcode operand cycles hinzc b0 b7 c
instruction set opcode map mc68hc705rc17 rev. 2.0 general release specification motorola instruction set 113 non-disclosure agreement required 12.6 opcode map see table 12-7 . tst opr tsta tstx tst opr ,x tst ,x test memory byte for negative or zero (m) C $00 dir inh inh ix1 ix 3d 4d 5d 6d 7d dd ff 4 3 3 5 4 txa transfer index register to accumulator a ? (x) inh 9f 2 wait stop cpu clock and enable interrupts 0 inh 8f 2 a accumulator opr operand (one or two bytes) c carry/borrow ?ag pc program counter ccr condition code register pch program counter high byte dd direct address of operand pcl program counter low byte dd rr direct address of operand and relative offset of branch instruction rel relative addressing mode dir direct addressing mode rel relative program counter offset byte ee ff high and low bytes of offset in indexed, 16-bit offset addressing rr relative program counter offset byte ext extended addressing mode sp stack pointer ff offset byte in indexed, 8-bit offset addressing x index register h half-carry ?ag z zero ?ag hh ll high and low bytes of operand address in extended addressing # immediate value i interrupt mask logical and ii immediate operand byte logical or imm immediate addressing mode ? logical exclusive or inh inherent addressing mode ( ) contents of ix indexed, no offset addressing mode C( ) negation (twos complement) ix1 indexed, 8-bit offset addressing mode ? loaded with ix2 indexed, 16-bit offset addressing mode ? if m memory location : concatenated with n negative ?ag set or cleared n any bit not affected table 12-6. instruction set summary (continued) source form operation description effect on ccr address mode opcode operand cycles hinzc
instruction set non-disclosure agreement required general release specification mc68hc705rc17 rev. 2.0 114 instruction set motorola table 12-7. opcode map bit manipulation branch read-modify-write control register/memory dir dir rel dir inh inh ix1 ix inh inh imm dir ext ix2 ix1 ix 0123456789 abcdef 0 5 brset0 3 dir 5 bset0 2 dir 3 bra 2 rel 5 neg 2 dir 3 nega 1 inh 3 negx 1 inh 6 neg 2 ix1 5 neg 1ix 9 rti 1 inh 2 sub 2 imm 3 sub 2 dir 4 sub 3 ext 5 sub 3 ix2 4 sub 2 ix1 3 sub 1ix 0 1 5 brclr0 3 dir 5 bclr0 2 dir 3 brn 2 rel 6 rts 1 inh 2 cmp 2 imm 3 cmp 2 dir 4 cmp 3 ext 5 cmp 3 ix2 4 cmp 2 ix1 3 cmp 1ix 1 2 5 brset1 3 dir 5 bset1 2 dir 3 bhi 2 rel 11 mul 1 inh 2 sbc 2 imm 3 sbc 2 dir 4 sbc 3 ext 5 sbc 3 ix2 4 sbc 2 ix1 3 sbc 1ix 2 3 5 brclr1 3 dir 5 bclr1 2 dir 3 bls 2 rel 5 com 2 dir 3 coma 1 inh 3 comx 1 inh 6 com 2 ix1 5 com 1ix 10 swi 1 inh 2 cpx 2 imm 3 cpx 2 dir 4 cpx 3 ext 5 cpx 3 ix2 4 cpx 2 ix1 3 cpx 1ix 3 4 5 brset2 3 dir 5 bset2 2 dir 3 bcc 2 rel 5 lsr 2 dir 3 lsra 1 inh 3 lsrx 1 inh 6 lsr 2 ix1 5 lsr 1ix 2 and 2 imm 3 and 2 dir 4 and 3 ext 5 and 3 ix2 4 and 2 ix1 3 and 1ix 4 5 5 brclr2 3 dir 5 bclr2 2 dir 3 bcs/blo 2 rel 2 bit 2 imm 3 bit 2 dir 4 bit 3 ext 5 bit 3 ix2 4 bit 2 ix1 3 bit 1ix 5 6 5 brset3 3 dir 5 bset3 2 dir 3 bne 2 rel 5 ror 2 dir 3 rora 1 inh 3 rorx 1 inh 6 ror 2 ix1 5 ror 1ix 2 lda 2 imm 3 lda 2 dir 4 lda 3 ext 5 lda 3 ix2 4 lda 2 ix1 3 lda 1ix 6 7 5 brclr3 3 dir 5 bclr3 2 dir 3 beq 2 rel 5 asr 2 dir 3 asra 1 inh 3 asrx 1 inh 6 asr 2 ix1 5 asr 1ix 2 ta x 1 inh 4 sta 2 dir 5 sta 3 ext 6 sta 3 ix2 5 sta 2 ix1 4 sta 1ix 7 8 5 brset4 3 dir 5 bset4 2 dir 3 bhcc 2 rel 5 asl/lsl 2 dir 3 asla/lsla 1 inh 3 aslx/lslx 1 inh 6 asl/lsl 2 ix1 5 asl/lsl 1ix 2 clc 1 inh 2 eor 2 imm 3 eor 2 dir 4 eor 3 ext 5 eor 3 ix2 4 eor 2 ix1 3 eor 1ix 8 9 5 brclr4 3 dir 5 bclr4 2 dir 3 bhcs 2 rel 5 rol 2 dir 3 rola 1 inh 3 rolx 1 inh 6 rol 2 ix1 5 rol 1ix 2 sec 1 inh 2 adc 2 imm 3 adc 2 dir 4 adc 3 ext 5 adc 3 ix2 4 adc 2 ix1 3 adc 1ix 9 a 5 brset5 3 dir 5 bset5 2 dir 3 bpl 2 rel 5 dec 2 dir 3 deca 1 inh 3 decx 1 inh 6 dec 2 ix1 5 dec 1ix 2 cli 1 inh 2 ora 2 imm 3 ora 2 dir 4 ora 3 ext 5 ora 3 ix2 4 ora 2 ix1 3 ora 1ix a b 5 brclr5 3 dir 5 bclr5 2 dir 3 bmi 2 rel 2 sei 1 inh 2 add 2 imm 3 add 2 dir 4 add 3 ext 5 add 3 ix2 4 add 2 ix1 3 add 1ix b c 5 brset6 3 dir 5 bset6 2 dir 3 bmc 2 rel 5 inc 2 dir 3 inca 1 inh 3 incx 1 inh 6 inc 2 ix1 5 inc 1ix 2 rsp 1 inh 2 jmp 2 dir 3 jmp 3 ext 4 jmp 3 ix2 3 jmp 2 ix1 2 jmp 1ix c d 5 brclr6 3 dir 5 bclr6 2 dir 3 bms 2 rel 4 tst 2 dir 3 tsta 1 inh 3 tstx 1 inh 5 tst 2 ix1 4 tst 1ix 2 nop 1 inh 6 bsr 2 rel 5 jsr 2 dir 6 jsr 3 ext 7 jsr 3 ix2 6 jsr 2 ix1 5 jsr 1ix d e 5 brset7 3 dir 5 bset7 2 dir 3 bil 2 rel 2 stop 1 inh 2 ldx 2 imm 3 ldx 2 dir 4 ldx 3 ext 5 ldx 3 ix2 4 ldx 2 ix1 3 ldx 1ix e f 5 brclr7 3 dir 5 bclr7 2 dir 3 bih 2 rel 5 clr 2 dir 3 clra 1 inh 3 clrx 1 inh 6 clr 2 ix1 5 clr 1ix 2 wait 1 inh 2 txa 1 inh 4 stx 2 dir 5 stx 3 ext 6 stx 3 ix2 5 stx 2 ix1 4 stx 1ix f inh = inherent rel = relative imm = immediate ix = indexed, no offset dir = direct ix1 = indexed, 8-bit offset ext = extended ix2 = indexed, 16-bit offset 0 msb of opcode in hexadecimal lsb of opcode in hexadecimal 0 5 brset0 3 dir number of cycles opcode mnemonic number of bytes/addressing mode lsb msb lsb msb lsb msb
mc68hc705rc17 rev. 2.0 general release specification motorola electrical specifications 115 non-disclosure agreement required general release specification mc68hc705rc17 section 13. electrical specifications 13.1 contents 13.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .115 13.3 maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .116 13.4 operating range . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117 13.5 thermal characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . .117 13.6 dc electrical characteristics (5.0 vdc). . . . . . . . . . . . . . . . . .118 13.7 dc electrical characteristics (3.3 vdc). . . . . . . . . . . . . . . . . .119 13.8 control timing (3.3 vdc and 5.0 vdc). . . . . . . . . . . . . . . . . . .120 13.2 introduction this section contains the electrical and timing specifications.
non-disclosure agreement required electrical speci?cations general release specification mc68hc705rc17 rev. 2.0 116 electrical specifications motorola 13.3 maximum ratings maximum ratings are the extreme limits to which the mcu can be exposed without permanently damaging it. the mcu contains circuitry to protect the inputs against damage from high static voltages; however, do not apply voltages higher than those shown in the table below. keep v in and v out within the range v ss (v in or v out ) v dd . connect unused inputs to the appropriate voltage level, either v ss or v dd . note: this device is not guaranteed to operate properly at the maximum ratings. refer to 13.6 dc electrical characteristics (5.0 vdc) and 13.7 dc electrical characteristics (3.3 vdc) for guaranteed operating conditions. rating symbol value unit supply voltage v dd C0.3 to +7.0 v input voltage v in v ss C0.3 to v dd + 0.3 v bootloader mode ( irq/v pp pin only) v in v ss C0.3 to 2 x v dd + 0.3 v current drain per pin excluding v dd and v ss i25ma operating junction temperature t j +150 c storage temperature range t stg C65 to +150 c
electrical specifications operating range mc68hc705rc17 rev. 2.0 general release specification motorola electrical specifications 117 non-disclosure agreement required 13.4 operating range 13.5 thermal characteristics characteristic symbol value unit operating temperature range mc68hc05rc17 (standard) t a t l to t h 0 to +70 c characteristic symbol value unit thermal resistance plastic dual in-line package small outline intergrated circuit package q ja 60 60 c/w
non-disclosure agreement required electrical speci?cations general release specification mc68hc705rc17 rev. 2.0 118 electrical specifications motorola 13.6 dc electrical characteristics (5.0 vdc) characteristic symbol min typ max unit output voltage i load = 10.0 m a i load = C10.0 m a v ol v oh v dd C0.1 0.1 v output high voltage (i load C2.0 ma) port a, port b, port c (1C7) (i load C15.0 ma) iro (i load C4.0 ma) port c (bit 0) v oh v dd C0.8 v dd C0.7 v dd C0.8 v dd C0.2 v dd C0.2 v dd C0.2 v output low voltage (i load = 3.0 ma) port a, port b, port c (1C7) (i load = 25.0 ma) iro (i load = 20.0 ma) port c (bit 0) v ol 0.2 0.2 0.2 0.4 0.8 0.4 v input high voltage port a, port b, port c, irq, reset, lprst, osc1 v ih 0.7 x v dd v dd v input low voltage port a, port b, port c, irq, reset, lprst, osc1 v il v ss 0.2 x v dd v input hysteresis ( reset) v hyst 0.8 0.9 1 v eprom programming voltage v pp 14.5 15.5 v supply current (see notes) run (f op = 2.1 mhz) wait with pll enabled (f op = 2.1 mhz) wait with pll disabled (f op = 16.384 khz) stop 25 o c 0 o c to +70 o c i dd tbd tbd tbd 0.4 0.4 tbd tbd tbd 15 30 ma ma m a m a m a i/o ports hi-z leakage current port a, port b, port c i oz C10 10 m a input current reset, lprst, irq, osc1 pb0Cpb7 with pullups enabled (v in = 0.2 x v dd ) pb0Cpb7 with pullups enabled (v in = 0.7 x v dd ) i in C1 C100 C50 C330 C120 1 C700 C300 m a capacitance ports (as input or output) reset, lprst, irq c out c int 12 8 pf notes: 1. v dd = 5.0 vdc 10%, v ss = 0 vdc, t a = 0 c to +70 c, unless otherwise noted 2. all values shown reflect average measurements. 3. all current measurements represent the summation of current through v dd and v ddsyn supply pins. 4. typical values at midpoint of voltage range, 25 o c only 5. to minimize current consumption in wait mode, disable the pll before executing the wait instruction. internal bus speed will be that of the 32.768-khz external frequency. 6. wait i dd : only core timer active 7. run (with pll enabled) i dd , wait i dd (with pll enabled): measured using external square wave clock source (f osc = 4.2 mhz); all inputs 0.2 v from rail; no dc loads; less than 50 pf on all outputs; c l = 20 pf on osc2. wait i dd (with pll disabled): measured using external square wave clock source (f osc = 33 khz). 8. wait, stop i dd : port a and port c configured as inputs; port b configured as outputs; v il = 0.2 v; v ih = v dd C0.2 v 9. stop i dd is measured with osc1 = v ss . 10. wait i dd is affected linearly by the osc2 capacitance. 11. pullups are designed to be capable of pulling to v ih within 10 m s for a 100 pf, 4-k w load.
electrical specifications dc electrical characteristics (3.3 vdc) mc68hc705rc17 rev. 2.0 general release specification motorola electrical specifications 119 non-disclosure agreement required 13.7 dc electrical characteristics (3.3 vdc) characteristic symbol min typ max unit output voltage i load = 10.0 m a i load = C10.0 m a v ol v oh v dd C0.1 0.1 v output high voltage (i load C1.6 ma) port a, port b, port c (1C7) (i load C10 ma) iro (i load C1.2 ma) port c (bit 0) v oh v dd C0.3 v dd C0.7 v dd C0.3 v dd C0.1 v dd C0.1 v dd C0.1 v output low voltage (i load = 1.0 ma) port a, port b, port c (1C7) (i load = 8.0 ma) iro (i load = 7.0 ma) port c (bit 0) v ol 0.1 0.1 0.1 0.3 0.8 0.3 v input high voltage port a, port b, port c, irq, reset, lprst, osc1 v ih 0.7 x v dd v dd v input low voltage port a, port b, port c, irq, reset, lprst, osc1 v il v ss 0.3 x v dd v eprom programming voltage v pp 14.5 15.5 v supply current (see notes) run (f op = 2.1 mhz) wait with pll enabled (f op = 2.1 mhz) wait with pll disabled (f op = 16.384 khz) stop 25 o c 0 o c to +70 o c i dd tbd tbd tbd 0.15 0.15 tbd tbd tbd 4.0 8.0 ma ma m a m a m a i/o ports hi-z leakage current port a, port b, port c i oz C6 6 m a input current reset, lprst, irq, osc1 pb0Cpb7 with pullups enabled (v in = 0.3 x v dd ) pb0Cpb7 with pullups enabled (v in = 0.7 x v dd ) i in C0.6 C25 C15 C80 C50 0.6 C105 C65 m a capacitance ports (as input or output) reset, lprst, irq c out c int 12 8 pf notes: 1. v dd = 3.3 vdc 10%, v ss = 0 vdc, t a = 0 c to +70 c, unless otherwise noted 2. all values shown reflect average measurements. 3. typical values at midpoint of voltage range, 25 o c only 4. all current measurements represent the summation of current through v dd and v ddsyn supply pins. 5. to minimize current consumption in wait mode, disable the pll before executing the wait instruction. internal bus speed will be that of the 32.768-khz external frequency. 6. wait i dd : only core timer active 7. run (with pll enabled) i dd , wait i dd (with pll enabled): measured using external square wave clock source (f osc = 4.2 mhz); all inputs 0.2 v from rail; no dc loads;; less than 50 pf on all outputs; c l = 20 pf on osc2. wait i dd (with pll disabled): measured using external square wave clock source (f osc = 33 khz). 8. wait, stop i dd : port a and port c configured as inputs, port b configured as outputs; v il = 0.2 v; v ih = v dd C0.2 v 9. stop i dd is measured with osc1 = v ss . 10. wait i dd is affected linearly by the osc2 capacitance. 11. pullups are designed to be capable of pulling to v ih within 10 m s for a 100 pf, 4-k w load.
non-disclosure agreement required electrical speci?cations general release specification mc68hc705rc17 rev. 2.0 120 electrical specifications motorola 13.8 control timing (3.3 vdc and 5.0 vdc) characteristic symbol min max unit frequency of operation assumes use of 32.768-khz crystal only f osc 32.768 32.768 khz internal operating frequency assumes use of 32.768-khz crystal only f op = f osc ? ?2 if pll is no t driving internal bus f op = 32.768 khz x n, where n = 16, 32, or 64 (selectable) and pll is driving internal bus f op 0.524 16.384 2.097 khz mhz cycle time assumes f op = 2.097 mhz t cyc 480 ns crystal oscillator startup time assumes f op = 2.097 mhz) t oxov 100 ms stop recovery startup time (crystal oscillator) assumes f op = 2.097 mhz) t ilch 100 ms reset pulse width assumes f op = 2.097 mhz) t rl 1.5 t cyc interrupt pulse width low (edge-triggered) assumes f op = 2.097 mhz) t ilih 125 ns interrupt pulse period assumes f op = 2.097 mhz) t ilil note 2 t cyc osc1 pulse width t oh , t ol 90 ns eprom byte programming time t epgm 10.0 ms notes: 1. v dd = 3.0 to 5.5 vdc 10%, v ss = 0 vdc, t a = 0 c to +70 c, unless otherwise noted 2. the minimum period, t ilil , should not be less than the number of cycle times it takes to execute the interrupt service routine plus 2t t cyc .
mc68hc705rc17 rev. 2.0 general release specification motorola mechanical specifications 121 non-disclosure agreement required general release specification mc68hc705rc17 section 14. mechanical specifications 14.1 contents 14.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .121 14.3 28-pin plastic dual in-line package (case 710-02) . . . . . . .121 14.4 28-pin small outline integrated circuit package (case 751f-04). . . . . . . . . . . . . . . . . . . . . . . . . .122 14.2 introduction this section describes the dimensions of the dual in-line package (dip) and small outline integrated circuit (soic) mcu packages. 14.3 28-pin plastic dual in-line package (case 710-02)        
   
         
   
         
        
  

  

      
          
       
 !    ! !      #!  %%  ! $" ! !  ! ! !    !     ! !   #        ! "    114 15 28 b a c n k m j d     f hg l
non-disclosure agreement required mechanical speci?cations general release specification mc68hc705rc17 rev. 2.0 122 mechanical specifications motorola 14.4 28-pin small outline integrated circuit package (case 751f-04)             
    
   
          
            
          
     
         !      !    %
    !   !        ! "  !" 
 $"  !"            ! "  !"  #  !"       !!  $     ! $" ! ! -a- -b- 114 15 28 -t- c           m j -t- k 26x g 28x d 14x p r x 45 f    !   
mc68hc705rc17 rev. 2.0 general release specification motorola ordering information 123 non-disclosure agreement required general release specification mc68hc705rc17 section 15. ordering information 15.1 contents 15.2 introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123 15.3 ordering information. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .123 15.2 introduction this section contains ordering instructions for the mc68hc705rc17. 15.3 ordering information table 15-1 provides information in determing order numbers. table 15-1. mc order numbers package type operating temperature range mc order number 28-pin plastic dual in-line package (dip) 0 to 70 c mc68hc705rc17p 28-pin small outline integrated circuit package (soic) 0 to 70 c mc68hc705rc17dw
non-disclosure agreement required ordering information general release specification mc68hc705rc17 rev. 2.0 124 ordering information motorola

HC705RC17GRS/d ? motorola, inc., 1997 motorola reserves the right to make changes without further notice to any products herein. motorola makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does motorola assume any liability arising out of the application or use of any product or circuit, and speci?cally disclaims any and all liability, including without limitation consequential or incidental damages. "typical" parameters which may be provided in motorola data sheets and/or speci?cations can and do vary in different applications and actual performance may vary over time. all operating parameters, including "typicals" must be validated for each customer application by customer's technical experts. motorola does not convey any license under its patent rights nor the rights of others. motorola products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the motorola product could create a situation where personal injury or death may occur. should buyer purchase or use motorola products for any such unintended or unauthorized application, buyer shall indemnify and hold motorola and its of?cers, employees, subsidiaries, af?liates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that motorola was negligent regarding the design or manufacture of the part. motorola and are registered trademarks of motorola, inc. motorola, inc. is an equal opportunity/af?rmative action employer. how to reach us: usa/europe/locations not listed: motorola literature distribution; p.o. box 5405, denver, colorado 80217. 1-800-441-2447 or 303-675-2140 mfax?: rmfax0@email.sps.mot.com C touchtone 602-244-6609, us & canada only 1-800-774-1848 internet: http://motorola.com/sps japan: nippon motorola ltd. spd, strategic planning of?ce 4-32-1, nishi-gotanda shinagawa-ku, tokyo 141, japan. 81-3-5487-8488 asia/pacific: motorola semiconductors h.k. ltd.; 8b tai ping industrial park, 51 ting kok road, tai po, n.t., hong kong. 852-26629298 mfax is a trademark of motorola, inc.


▲Up To Search▲   

 
Price & Availability of HC705RC17GRS

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X